Package io.moov.sdk.models.components
Class PaymentMethodsCard
- java.lang.Object
-
- io.moov.sdk.models.components.PaymentMethodsCard
-
public class PaymentMethodsCard extends java.lang.ObjectPaymentMethodsCardA card as contained within a payment method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethodsCard.Builder
-
Constructor Summary
Constructors Constructor Description PaymentMethodsCard(java.lang.String cardID, java.lang.String fingerprint, CardBrand brand, CardType cardType, java.lang.String lastFourCardNumber, java.lang.String bin, CardExpiration expiration, CardAddress billingAddress, CardVerification cardVerification)PaymentMethodsCard(java.lang.String cardID, java.lang.String fingerprint, CardBrand brand, CardType cardType, java.lang.String lastFourCardNumber, java.lang.String bin, CardExpiration expiration, java.util.Optional<java.lang.String> holderName, CardAddress billingAddress, CardVerification cardVerification, java.util.Optional<java.lang.String> issuer, java.util.Optional<java.lang.String> issuerCountry, java.util.Optional<java.lang.Boolean> cardOnFile, java.util.Optional<java.lang.String> merchantAccountID, java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater, java.util.Optional<? extends DomesticPushToCard> domesticPushToCard, java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardAddressbillingAddress()java.lang.Stringbin()The first six to eight digits of the card number, which identifies the financial institution that issued the card.CardBrandbrand()The card brand.static PaymentMethodsCard.Builderbuilder()java.util.Optional<CardAccountUpdater>cardAccountUpdater()The results of the most recent card update request.java.lang.StringcardID()ID of the card.java.util.Optional<java.lang.Boolean>cardOnFile()Indicates cardholder has authorized card to be stored for future payments.CardTypecardType()The type of the card.CardVerificationcardVerification()The results of submitting cardholder data to a card network for verification.java.util.Optional<DomesticPullFromCard>domesticPullFromCard()Indicates if the card supports domestic pull-from-card transfer.java.util.Optional<DomesticPushToCard>domesticPushToCard()Indicates which level of domestic push-to-card transfer is supported by the card, if any.booleanequals(java.lang.Object o)CardExpirationexpiration()The expiration date of the card or token.java.lang.Stringfingerprint()Uniquely identifies a linked payment card or token.inthashCode()java.util.Optional<java.lang.String>holderName()The name of the cardholder as it appears on the card.java.util.Optional<java.lang.String>issuer()Financial institution that issued the card.java.util.Optional<java.lang.String>issuerCountry()Country where the card was issued.java.lang.StringlastFourCardNumber()Last four digits of the card numberjava.util.Optional<java.lang.String>merchantAccountID()java.lang.StringtoString()PaymentMethodsCardwithBillingAddress(CardAddress billingAddress)PaymentMethodsCardwithBin(java.lang.String bin)The first six to eight digits of the card number, which identifies the financial institution that issued the card.PaymentMethodsCardwithBrand(CardBrand brand)The card brand.PaymentMethodsCardwithCardAccountUpdater(CardAccountUpdater cardAccountUpdater)The results of the most recent card update request.PaymentMethodsCardwithCardAccountUpdater(java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater)The results of the most recent card update request.PaymentMethodsCardwithCardID(java.lang.String cardID)ID of the card.PaymentMethodsCardwithCardOnFile(boolean cardOnFile)Indicates cardholder has authorized card to be stored for future payments.PaymentMethodsCardwithCardOnFile(java.util.Optional<java.lang.Boolean> cardOnFile)Indicates cardholder has authorized card to be stored for future payments.PaymentMethodsCardwithCardType(CardType cardType)The type of the card.PaymentMethodsCardwithCardVerification(CardVerification cardVerification)The results of submitting cardholder data to a card network for verification.PaymentMethodsCardwithDomesticPullFromCard(DomesticPullFromCard domesticPullFromCard)Indicates if the card supports domestic pull-from-card transfer.PaymentMethodsCardwithDomesticPullFromCard(java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)Indicates if the card supports domestic pull-from-card transfer.PaymentMethodsCardwithDomesticPushToCard(DomesticPushToCard domesticPushToCard)Indicates which level of domestic push-to-card transfer is supported by the card, if any.PaymentMethodsCardwithDomesticPushToCard(java.util.Optional<? extends DomesticPushToCard> domesticPushToCard)Indicates which level of domestic push-to-card transfer is supported by the card, if any.PaymentMethodsCardwithExpiration(CardExpiration expiration)The expiration date of the card or token.PaymentMethodsCardwithFingerprint(java.lang.String fingerprint)Uniquely identifies a linked payment card or token.PaymentMethodsCardwithHolderName(java.lang.String holderName)The name of the cardholder as it appears on the card.PaymentMethodsCardwithHolderName(java.util.Optional<java.lang.String> holderName)The name of the cardholder as it appears on the card.PaymentMethodsCardwithIssuer(java.lang.String issuer)Financial institution that issued the card.PaymentMethodsCardwithIssuer(java.util.Optional<java.lang.String> issuer)Financial institution that issued the card.PaymentMethodsCardwithIssuerCountry(java.lang.String issuerCountry)Country where the card was issued.PaymentMethodsCardwithIssuerCountry(java.util.Optional<java.lang.String> issuerCountry)Country where the card was issued.PaymentMethodsCardwithLastFourCardNumber(java.lang.String lastFourCardNumber)Last four digits of the card numberPaymentMethodsCardwithMerchantAccountID(java.lang.String merchantAccountID)PaymentMethodsCardwithMerchantAccountID(java.util.Optional<java.lang.String> merchantAccountID)
-
-
-
Constructor Detail
-
PaymentMethodsCard
public PaymentMethodsCard(java.lang.String cardID, java.lang.String fingerprint, CardBrand brand, CardType cardType, java.lang.String lastFourCardNumber, java.lang.String bin, CardExpiration expiration, java.util.Optional<java.lang.String> holderName, CardAddress billingAddress, CardVerification cardVerification, java.util.Optional<java.lang.String> issuer, java.util.Optional<java.lang.String> issuerCountry, java.util.Optional<java.lang.Boolean> cardOnFile, java.util.Optional<java.lang.String> merchantAccountID, java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater, java.util.Optional<? extends DomesticPushToCard> domesticPushToCard, java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)
-
PaymentMethodsCard
public PaymentMethodsCard(java.lang.String cardID, java.lang.String fingerprint, CardBrand brand, CardType cardType, java.lang.String lastFourCardNumber, java.lang.String bin, CardExpiration expiration, CardAddress billingAddress, CardVerification cardVerification)
-
-
Method Detail
-
cardID
public java.lang.String cardID()
ID of the card.
-
fingerprint
public java.lang.String fingerprint()
Uniquely identifies a linked payment card or token. For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device. This field can be used to identify specific payment methods across multiple accounts on your platform.
-
brand
public CardBrand brand()
The card brand.
-
cardType
public CardType cardType()
The type of the card.
-
lastFourCardNumber
public java.lang.String lastFourCardNumber()
Last four digits of the card number
-
bin
public java.lang.String bin()
The first six to eight digits of the card number, which identifies the financial institution that issued the card.
-
expiration
public CardExpiration expiration()
The expiration date of the card or token.
-
holderName
public java.util.Optional<java.lang.String> holderName()
The name of the cardholder as it appears on the card.
-
billingAddress
public CardAddress billingAddress()
-
cardVerification
public CardVerification cardVerification()
The results of submitting cardholder data to a card network for verification.
-
issuer
public java.util.Optional<java.lang.String> issuer()
Financial institution that issued the card.
-
issuerCountry
public java.util.Optional<java.lang.String> issuerCountry()
Country where the card was issued.
-
cardOnFile
public java.util.Optional<java.lang.Boolean> cardOnFile()
Indicates cardholder has authorized card to be stored for future payments.
-
merchantAccountID
public java.util.Optional<java.lang.String> merchantAccountID()
-
cardAccountUpdater
public java.util.Optional<CardAccountUpdater> cardAccountUpdater()
The results of the most recent card update request.
-
domesticPushToCard
public java.util.Optional<DomesticPushToCard> domesticPushToCard()
Indicates which level of domestic push-to-card transfer is supported by the card, if any.
-
domesticPullFromCard
public java.util.Optional<DomesticPullFromCard> domesticPullFromCard()
Indicates if the card supports domestic pull-from-card transfer.
-
builder
public static final PaymentMethodsCard.Builder builder()
-
withCardID
public PaymentMethodsCard withCardID(java.lang.String cardID)
ID of the card.
-
withFingerprint
public PaymentMethodsCard withFingerprint(java.lang.String fingerprint)
Uniquely identifies a linked payment card or token. For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device. This field can be used to identify specific payment methods across multiple accounts on your platform.
-
withBrand
public PaymentMethodsCard withBrand(CardBrand brand)
The card brand.
-
withCardType
public PaymentMethodsCard withCardType(CardType cardType)
The type of the card.
-
withLastFourCardNumber
public PaymentMethodsCard withLastFourCardNumber(java.lang.String lastFourCardNumber)
Last four digits of the card number
-
withBin
public PaymentMethodsCard withBin(java.lang.String bin)
The first six to eight digits of the card number, which identifies the financial institution that issued the card.
-
withExpiration
public PaymentMethodsCard withExpiration(CardExpiration expiration)
The expiration date of the card or token.
-
withHolderName
public PaymentMethodsCard withHolderName(java.lang.String holderName)
The name of the cardholder as it appears on the card.
-
withHolderName
public PaymentMethodsCard withHolderName(java.util.Optional<java.lang.String> holderName)
The name of the cardholder as it appears on the card.
-
withBillingAddress
public PaymentMethodsCard withBillingAddress(CardAddress billingAddress)
-
withCardVerification
public PaymentMethodsCard withCardVerification(CardVerification cardVerification)
The results of submitting cardholder data to a card network for verification.
-
withIssuer
public PaymentMethodsCard withIssuer(java.lang.String issuer)
Financial institution that issued the card.
-
withIssuer
public PaymentMethodsCard withIssuer(java.util.Optional<java.lang.String> issuer)
Financial institution that issued the card.
-
withIssuerCountry
public PaymentMethodsCard withIssuerCountry(java.lang.String issuerCountry)
Country where the card was issued.
-
withIssuerCountry
public PaymentMethodsCard withIssuerCountry(java.util.Optional<java.lang.String> issuerCountry)
Country where the card was issued.
-
withCardOnFile
public PaymentMethodsCard withCardOnFile(boolean cardOnFile)
Indicates cardholder has authorized card to be stored for future payments.
-
withCardOnFile
public PaymentMethodsCard withCardOnFile(java.util.Optional<java.lang.Boolean> cardOnFile)
Indicates cardholder has authorized card to be stored for future payments.
-
withMerchantAccountID
public PaymentMethodsCard withMerchantAccountID(java.lang.String merchantAccountID)
-
withMerchantAccountID
public PaymentMethodsCard withMerchantAccountID(java.util.Optional<java.lang.String> merchantAccountID)
-
withCardAccountUpdater
public PaymentMethodsCard withCardAccountUpdater(CardAccountUpdater cardAccountUpdater)
The results of the most recent card update request.
-
withCardAccountUpdater
public PaymentMethodsCard withCardAccountUpdater(java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater)
The results of the most recent card update request.
-
withDomesticPushToCard
public PaymentMethodsCard withDomesticPushToCard(DomesticPushToCard domesticPushToCard)
Indicates which level of domestic push-to-card transfer is supported by the card, if any.
-
withDomesticPushToCard
public PaymentMethodsCard withDomesticPushToCard(java.util.Optional<? extends DomesticPushToCard> domesticPushToCard)
Indicates which level of domestic push-to-card transfer is supported by the card, if any.
-
withDomesticPullFromCard
public PaymentMethodsCard withDomesticPullFromCard(DomesticPullFromCard domesticPullFromCard)
Indicates if the card supports domestic pull-from-card transfer.
-
withDomesticPullFromCard
public PaymentMethodsCard withDomesticPullFromCard(java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)
Indicates if the card supports domestic pull-from-card transfer.
-
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
-
-