jp.gopay.sdk.models.request.transactiontoken.CreateReq 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.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;
}
}