com.checkout.sessions.source.RequestTokenSource 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.sessions.source;
import com.checkout.common.Phone;
import com.checkout.sessions.SessionAddress;
import com.checkout.sessions.SessionScheme;
import com.checkout.sessions.SessionSourceType;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class RequestTokenSource extends SessionSource {
private String token;
@SerializedName("store_for_future_use")
private Boolean storeForFutureUse;
@Builder
private RequestTokenSource(final String token,
final SessionScheme scheme,
final SessionAddress billingAddress,
final Phone homePhone,
final Phone mobilePhone,
final Phone workPhone,
final String email,
final Boolean storeForFutureUse) {
super(SessionSourceType.TOKEN, scheme, billingAddress, homePhone, mobilePhone, workPhone, email);
this.token = token;
this.storeForFutureUse = storeForFutureUse;
}
public RequestTokenSource() {
super(SessionSourceType.TOKEN);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy