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

jp.gopay.sdk.models.request.subscription.SubscriptionPlanSimulationRequest Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy