Class CardSource
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.common.source.AbstractSource
-
- com.checkout.handlepaymentsandpayouts.payments.common.source.cardsource.CardSource
-
public final class CardSource extends AbstractSource
card source Class The source of the payment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardSource.CardSourceBuilder
-
Field Summary
-
Fields inherited from class com.checkout.handlepaymentsandpayouts.payments.common.source.AbstractSource
type
-
-
Constructor Summary
Constructors Constructor Description CardSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CardSource.CardSourceBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)AbstractAccountHoldergetAccountHolder()Information about the account holder of the card [Optional]java.lang.StringgetAccountUpdateFailureCode()Provides the failure code if the Real-Time Account Updater fails to update the card information.AccountUpdateStatusTypegetAccountUpdateStatus()Specifies what card information was updated by the Real-Time Account Updater.java.lang.StringgetAvsCheck()The Address Verification System check result [Optional]BillingAddressgetBillingAddress()The payment source owner's billing address [Optional]java.lang.StringgetBin()The card issuer's Bank Identification Number (BIN) [Required] <= 8CardCategoryTypegetCardCategory()The card category [Optional]CardTypegetCardType()The card type [Optional]CardWalletTypegetCardWalletType()The card wallet type [Optional]java.lang.StringgetCvvCheck()The card verification value (CVV) check result [Optional]java.lang.StringgetEncryptedCardNumber()The JWE encrypted full card number that has been updated by real-time account updater.java.lang.IntegergetExpiryMonth()The expiry month [Required] [ 1 ..java.lang.IntegergetExpiryYear()The expiry year [Required] 4 charactersjava.lang.StringgetFingerprint()Uniquely identifies this particular card number.java.lang.StringgetId()The payment source identifier that can be used for subsequent payments.java.lang.StringgetIssuer()The name of the card issuer [Optional]java.lang.StringgetIssuerCountry()The card issuer's country (two-letter ISO code) [Optional] 2 charactersjava.lang.StringgetLast4()The last four digits of the card number [Required]java.util.List<java.lang.String>getLocalSchemes()The local co-branded card schemes.java.lang.StringgetName()The cardholder's name [Optional]java.lang.StringgetPaymentAccountReference()A unique reference to the underlying card for network tokens (e.g., Apple Pay, Google Pay) [Optional]PhonegetPhone()The payment source owner's phone number [Optional]java.lang.StringgetProductId()The issuer/card scheme product identifier [Optional]java.lang.StringgetProductType()The issuer/card scheme product type [Optional]java.lang.StringgetScheme()The card scheme [Optional]java.lang.StringgetSchemeLocal()Deprecated.inthashCode()voidsetAccountHolder(AbstractAccountHolder accountHolder)Information about the account holder of the card [Optional]voidsetAccountUpdateFailureCode(java.lang.String accountUpdateFailureCode)Provides the failure code if the Real-Time Account Updater fails to update the card information.voidsetAccountUpdateStatus(AccountUpdateStatusType accountUpdateStatus)Specifies what card information was updated by the Real-Time Account Updater.voidsetAvsCheck(java.lang.String avsCheck)The Address Verification System check result [Optional]voidsetBillingAddress(BillingAddress billingAddress)The payment source owner's billing address [Optional]voidsetBin(java.lang.String bin)The card issuer's Bank Identification Number (BIN) [Required] <= 8voidsetCardCategory(CardCategoryType cardCategory)The card category [Optional]voidsetCardType(CardType cardType)The card type [Optional]voidsetCardWalletType(CardWalletType cardWalletType)The card wallet type [Optional]voidsetCvvCheck(java.lang.String cvvCheck)The card verification value (CVV) check result [Optional]voidsetEncryptedCardNumber(java.lang.String encryptedCardNumber)The JWE encrypted full card number that has been updated by real-time account updater.voidsetExpiryMonth(java.lang.Integer expiryMonth)The expiry month [Required] [ 1 ..voidsetExpiryYear(java.lang.Integer expiryYear)The expiry year [Required] 4 charactersvoidsetFingerprint(java.lang.String fingerprint)Uniquely identifies this particular card number.voidsetId(java.lang.String id)The payment source identifier that can be used for subsequent payments.voidsetIssuer(java.lang.String issuer)The name of the card issuer [Optional]voidsetIssuerCountry(java.lang.String issuerCountry)The card issuer's country (two-letter ISO code) [Optional] 2 charactersvoidsetLast4(java.lang.String last4)The last four digits of the card number [Required]voidsetLocalSchemes(java.util.List<java.lang.String> localSchemes)The local co-branded card schemes.voidsetName(java.lang.String name)The cardholder's name [Optional]voidsetPaymentAccountReference(java.lang.String paymentAccountReference)A unique reference to the underlying card for network tokens (e.g., Apple Pay, Google Pay) [Optional]voidsetPhone(Phone phone)The payment source owner's phone number [Optional]voidsetProductId(java.lang.String productId)The issuer/card scheme product identifier [Optional]voidsetProductType(java.lang.String productType)The issuer/card scheme product type [Optional]voidsetScheme(java.lang.String scheme)The card scheme [Optional]voidsetSchemeLocal(java.lang.String schemeLocal)Deprecated.java.lang.StringtoString()-
Methods inherited from class com.checkout.handlepaymentsandpayouts.payments.common.source.AbstractSource
getType
-
-
-
-
Method Detail
-
builder
public static CardSource.CardSourceBuilder builder()
-
getExpiryMonth
public java.lang.Integer getExpiryMonth()
The expiry month [Required] [ 1 .. 2 ] characters >= 1 >= 1
-
getExpiryYear
public java.lang.Integer getExpiryYear()
The expiry year [Required] 4 characters
-
getLast4
public java.lang.String getLast4()
The last four digits of the card number [Required]
-
getFingerprint
public java.lang.String getFingerprint()
Uniquely identifies this particular card number. You can use this to compare cards across customers. [Required]
-
getBin
public java.lang.String getBin()
The card issuer's Bank Identification Number (BIN) [Required] <= 8
-
getId
public java.lang.String getId()
The payment source identifier that can be used for subsequent payments. For new sources, this will only be returned if the payment was approved [Optional]
-
getBillingAddress
public BillingAddress getBillingAddress()
The payment source owner's billing address [Optional]
-
getPhone
public Phone getPhone()
The payment source owner's phone number [Optional]
-
getName
public java.lang.String getName()
The cardholder's name [Optional]
-
getScheme
public java.lang.String getScheme()
The card scheme [Optional]
-
getSchemeLocal
@Deprecated public java.lang.String getSchemeLocal()
Deprecated.[DEPRECATED] Replaced by local_schemes The local co-branded card scheme. [Optional]
-
getLocalSchemes
public java.util.List<java.lang.String> getLocalSchemes()
The local co-branded card schemes. [Optional]
-
getCardType
public CardType getCardType()
The card type [Optional]
-
getCardCategory
public CardCategoryType getCardCategory()
The card category [Optional]
-
getCardWalletType
public CardWalletType getCardWalletType()
The card wallet type [Optional]
-
getIssuer
public java.lang.String getIssuer()
The name of the card issuer [Optional]
-
getIssuerCountry
public java.lang.String getIssuerCountry()
The card issuer's country (two-letter ISO code) [Optional] 2 characters
-
getProductId
public java.lang.String getProductId()
The issuer/card scheme product identifier [Optional]
-
getProductType
public java.lang.String getProductType()
The issuer/card scheme product type [Optional]
-
getAvsCheck
public java.lang.String getAvsCheck()
The Address Verification System check result [Optional]
-
getCvvCheck
public java.lang.String getCvvCheck()
The card verification value (CVV) check result [Optional]
-
getPaymentAccountReference
public java.lang.String getPaymentAccountReference()
A unique reference to the underlying card for network tokens (e.g., Apple Pay, Google Pay) [Optional]
-
getEncryptedCardNumber
public java.lang.String getEncryptedCardNumber()
The JWE encrypted full card number that has been updated by real-time account updater. [Optional]
-
getAccountUpdateStatus
public AccountUpdateStatusType getAccountUpdateStatus()
Specifies what card information was updated by the Real-Time Account Updater. [Optional]
-
getAccountUpdateFailureCode
public java.lang.String getAccountUpdateFailureCode()
Provides the failure code if the Real-Time Account Updater fails to update the card information. [Optional]
-
getAccountHolder
public AbstractAccountHolder getAccountHolder()
Information about the account holder of the card [Optional]
-
setExpiryMonth
public void setExpiryMonth(java.lang.Integer expiryMonth)
The expiry month [Required] [ 1 .. 2 ] characters >= 1 >= 1
-
setExpiryYear
public void setExpiryYear(java.lang.Integer expiryYear)
The expiry year [Required] 4 characters
-
setLast4
public void setLast4(java.lang.String last4)
The last four digits of the card number [Required]
-
setFingerprint
public void setFingerprint(java.lang.String fingerprint)
Uniquely identifies this particular card number. You can use this to compare cards across customers. [Required]
-
setBin
public void setBin(java.lang.String bin)
The card issuer's Bank Identification Number (BIN) [Required] <= 8
-
setId
public void setId(java.lang.String id)
The payment source identifier that can be used for subsequent payments. For new sources, this will only be returned if the payment was approved [Optional]
-
setBillingAddress
public void setBillingAddress(BillingAddress billingAddress)
The payment source owner's billing address [Optional]
-
setPhone
public void setPhone(Phone phone)
The payment source owner's phone number [Optional]
-
setName
public void setName(java.lang.String name)
The cardholder's name [Optional]
-
setScheme
public void setScheme(java.lang.String scheme)
The card scheme [Optional]
-
setSchemeLocal
@Deprecated public void setSchemeLocal(java.lang.String schemeLocal)
Deprecated.[DEPRECATED] Replaced by local_schemes The local co-branded card scheme. [Optional]
-
setLocalSchemes
public void setLocalSchemes(java.util.List<java.lang.String> localSchemes)
The local co-branded card schemes. [Optional]
-
setCardType
public void setCardType(CardType cardType)
The card type [Optional]
-
setCardCategory
public void setCardCategory(CardCategoryType cardCategory)
The card category [Optional]
-
setCardWalletType
public void setCardWalletType(CardWalletType cardWalletType)
The card wallet type [Optional]
-
setIssuer
public void setIssuer(java.lang.String issuer)
The name of the card issuer [Optional]
-
setIssuerCountry
public void setIssuerCountry(java.lang.String issuerCountry)
The card issuer's country (two-letter ISO code) [Optional] 2 characters
-
setProductId
public void setProductId(java.lang.String productId)
The issuer/card scheme product identifier [Optional]
-
setProductType
public void setProductType(java.lang.String productType)
The issuer/card scheme product type [Optional]
-
setAvsCheck
public void setAvsCheck(java.lang.String avsCheck)
The Address Verification System check result [Optional]
-
setCvvCheck
public void setCvvCheck(java.lang.String cvvCheck)
The card verification value (CVV) check result [Optional]
-
setPaymentAccountReference
public void setPaymentAccountReference(java.lang.String paymentAccountReference)
A unique reference to the underlying card for network tokens (e.g., Apple Pay, Google Pay) [Optional]
-
setEncryptedCardNumber
public void setEncryptedCardNumber(java.lang.String encryptedCardNumber)
The JWE encrypted full card number that has been updated by real-time account updater. [Optional]
-
setAccountUpdateStatus
public void setAccountUpdateStatus(AccountUpdateStatusType accountUpdateStatus)
Specifies what card information was updated by the Real-Time Account Updater. [Optional]
-
setAccountUpdateFailureCode
public void setAccountUpdateFailureCode(java.lang.String accountUpdateFailureCode)
Provides the failure code if the Real-Time Account Updater fails to update the card information. [Optional]
-
setAccountHolder
public void setAccountHolder(AbstractAccountHolder accountHolder)
Information about the account holder of the card [Optional]
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractSource
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractSource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractSource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractSource
-
-