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

jp.gopay.sdk.models.request.subscription.SubscriptionCreateData 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.common.TransactionTokenId;
import jp.gopay.sdk.models.response.subscription.ScheduleSettings;
import jp.gopay.sdk.types.MetadataMap;
import jp.gopay.sdk.types.SubscriptionPeriod;

import java.math.BigInteger;
import java.util.Date;

public class SubscriptionCreateData extends SubscriptionRequestData {

    @SerializedName("currency")
    private String currency;

    @SerializedName("amount")
    private BigInteger amount;

    public SubscriptionCreateData(TransactionTokenId transactionTokenId,
                                  SubscriptionPeriod period,
                                  BigInteger initialAmount,
                                  MetadataMap metadata,
                                  InstallmentPlanRequest installmentPlan,
                                  ScheduleSettings scheduleSettings,
                                  Date subsequentCyclesStart,
                                  MoneyLike money,
                                  Boolean onlyDirectCurrency,
                                  String descriptor) {
        super(transactionTokenId, period, initialAmount, metadata, installmentPlan, scheduleSettings, subsequentCyclesStart,
                onlyDirectCurrency, descriptor);
        this.currency = money.getCurrency();
        this.amount = money.getAmount();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy