com.checkout.payments.previous.request.source.RequestNetworkTokenSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout.payments.previous.request.source;
import com.checkout.common.Address;
import com.checkout.common.Phone;
import com.checkout.payments.NetworkTokenType;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import static com.checkout.common.PaymentSourceType.NETWORK_TOKEN;
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class RequestNetworkTokenSource extends AbstractRequestSource {
private String token;
@SerializedName("expiry_month")
private Integer expiryMonth;
@SerializedName("expiry_year")
private Integer expiryYear;
@SerializedName("token_type")
private NetworkTokenType tokenType;
private String cryptogram;
private String eci;
private Boolean stored;
private String name;
private String cvv;
@SerializedName("billing_address")
private Address billingAddress;
private Phone phone;
@Builder
private RequestNetworkTokenSource(final String token,
final Integer expiryMonth,
final Integer expiryYear,
final NetworkTokenType tokenType,
final String cryptogram,
final String eci,
final Boolean stored,
final String name,
final String cvv,
final Address billingAddress,
final Phone phone) {
super(NETWORK_TOKEN);
this.token = token;
this.expiryMonth = expiryMonth;
this.expiryYear = expiryYear;
this.tokenType = tokenType;
this.cryptogram = cryptogram;
this.eci = eci;
this.stored = stored;
this.name = name;
this.cvv = cvv;
this.billingAddress = billingAddress;
this.phone = phone;
}
public RequestNetworkTokenSource() {
super(NETWORK_TOKEN);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy