Class PaymentMethodsCard


  • public class PaymentMethodsCard
    extends java.lang.Object
    PaymentMethodsCard

    A card as contained within a payment method.

    • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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​(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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object