jp.gopay.sdk.models.request.subscription.SubscriptionPlanSimulationRequest 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.subscription;
import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.MoneyLike;
import jp.gopay.sdk.models.response.subscription.ScheduleSettings;
import jp.gopay.sdk.types.PaymentTypeName;
import jp.gopay.sdk.types.SubscriptionPeriod;
import java.math.BigInteger;
public class SubscriptionPlanSimulationRequest {
@SerializedName("installment_plan")
private InstallmentPlanRequest installmentPlan;
@SerializedName("amount")
private BigInteger amount;
@SerializedName("currency")
private String currency;
@SerializedName("initial_amount")
private BigInteger initialAmount;
@SerializedName("schedule_settings")
private ScheduleSettings scheduleSettings;
@SerializedName("payment_type")
private PaymentTypeName paymentType;
@SerializedName("period")
private SubscriptionPeriod period;
public SubscriptionPlanSimulationRequest(InstallmentPlanRequest installmentPlan,
MoneyLike money,
BigInteger initialAmount,
ScheduleSettings scheduleSettings,
PaymentTypeName paymentType,
SubscriptionPeriod period) {
this.installmentPlan = installmentPlan;
this.amount = money.getAmount();
this.currency = money.getCurrency();
this.initialAmount = initialAmount;
this.scheduleSettings = scheduleSettings;
this.paymentType = paymentType;
this.period = period;
}
public InstallmentPlanRequest getInstallmentPlan() {
return installmentPlan;
}
public BigInteger getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
public BigInteger getInitialAmount() {
return initialAmount;
}
public ScheduleSettings getScheduleSettings() {
return scheduleSettings;
}
public PaymentTypeName getPaymentType() {
return paymentType;
}
public SubscriptionPeriod getPeriod() {
return period;
}
}