Class Card
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.Card
-
public final class Card extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCard.CardBuilder
-
Constructor Summary
Constructors Constructor Description Card()Card(StorePaymentDetailsType storePaymentDetails, AbstractAccountHolder accountHolder)Creates a newCardinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Card.CardBuilderbuilder()booleanequals(java.lang.Object o)AbstractAccountHoldergetAccountHolder()The account holder's details.StorePaymentDetailsTypegetStorePaymentDetails()Default: "disabled" Specifies whether you intend to store the cardholder's payment details.inthashCode()voidsetAccountHolder(AbstractAccountHolder accountHolder)The account holder's details.voidsetStorePaymentDetails(StorePaymentDetailsType storePaymentDetails)Default: "disabled" Specifies whether you intend to store the cardholder's payment details.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Card
public Card()
-
Card
public Card(StorePaymentDetailsType storePaymentDetails, AbstractAccountHolder accountHolder)
Creates a newCardinstance.- Parameters:
storePaymentDetails- Default: "disabled" Specifies whether you intend to store the cardholder's payment details. If you set this field to enabled, you must: have obtained consent from the cardholder to store their payment details provide a customer ID or email address in the request If the request's payment_type is set to one of the following values, you do not need to provide this field: Installment Recurring UnscheduledaccountHolder- The account holder's details.
-
-
Method Detail
-
builder
public static Card.CardBuilder builder()
-
getStorePaymentDetails
public StorePaymentDetailsType getStorePaymentDetails()
Default: "disabled" Specifies whether you intend to store the cardholder's payment details. If you set this field to enabled, you must: have obtained consent from the cardholder to store their payment details provide a customer ID or email address in the request If the request's payment_type is set to one of the following values, you do not need to provide this field: Installment Recurring Unscheduled
-
getAccountHolder
public AbstractAccountHolder getAccountHolder()
The account holder's details.
-
setStorePaymentDetails
public void setStorePaymentDetails(StorePaymentDetailsType storePaymentDetails)
Default: "disabled" Specifies whether you intend to store the cardholder's payment details. If you set this field to enabled, you must: have obtained consent from the cardholder to store their payment details provide a customer ID or email address in the request If the request's payment_type is set to one of the following values, you do not need to provide this field: Installment Recurring Unscheduled
-
setAccountHolder
public void setAccountHolder(AbstractAccountHolder accountHolder)
The account holder's details.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-