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

jp.gopay.sdk.models.request.transactiontoken.CreateReq Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.models.request.transactiontoken;

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.GoPayEmailAddress;
import jp.gopay.sdk.types.MetadataMap;
import jp.gopay.sdk.types.PaymentTypeName;
import jp.gopay.sdk.types.RecurringTokenInterval;
import jp.gopay.sdk.types.TransactionTokenType;

@SuppressWarnings("FieldCanBeLocal")
public class CreateReq {
    @SerializedName("payment_type")
    private PaymentTypeName paymentType;

    @SerializedName("email")
    private GoPayEmailAddress email;

    @SerializedName("type")
    private TransactionTokenType type;

    @SerializedName("usage_limit")
    private RecurringTokenInterval usageLimit;

    @SerializedName("metadata")
    private MetadataMap metadata;

    @SerializedName("use_confirmation")
    private Boolean useConfirmation;

    @SerializedName("data")
    private PaymentData data;

    public CreateReq(GoPayEmailAddress email, TransactionTokenType type, RecurringTokenInterval usageLimit, MetadataMap metadata, Boolean useConfirmation, PaymentData data) {
        this.paymentType = data.getPaymentType();
        this.email = email;
        this.type = type;
        this.usageLimit = usageLimit;
        this.metadata = metadata;
        this.useConfirmation = useConfirmation;
        this.data = data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy