All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.gopay.sdk.models.request.exchangerate.ExchangeRateConversionReq Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy