jp.gopay.sdk.models.request.charge.CaptureReq 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.charge;
import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.MoneyLike;
import java.math.BigInteger;
@SuppressWarnings("FieldCanBeLocal")
public class CaptureReq {
@SerializedName("amount")
private BigInteger amount;
@SerializedName("currency")
private String currency;
public CaptureReq(MoneyLike money) {
this.amount = money.getAmount();
this.currency = money.getCurrency();
}
}