jp.gopay.sdk.models.request.exchangerate.ExchangeRateConversionReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.models.request.exchangerate;
import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.MoneyLike;
import java.math.BigInteger;
public class ExchangeRateConversionReq {
@SerializedName("amount")
private BigInteger amount;
@SerializedName("currency")
private String currency;
@SerializedName("to")
private String to;
public BigInteger getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
public String getTo() {
return to;
}
public ExchangeRateConversionReq(MoneyLike moneyToConvert, String targetCurrency) {
this.amount = moneyToConvert.getAmount();
this.currency = moneyToConvert.getCurrency();
this.to = targetCurrency;
}
}