Class TerminalCard


  • public class TerminalCard
    extends java.lang.Object
    TerminalCard

    Describes payment card details captured with tap or in-person payment.

    • Constructor Detail

      • TerminalCard

        public TerminalCard​(java.util.Optional<? extends EntryMode> entryMode,
                            java.util.Optional<? extends CardBrand> brand,
                            java.util.Optional<java.lang.String> bin,
                            java.util.Optional<? extends CardType> cardType,
                            java.util.Optional<? extends CardExpiration> expiration,
                            java.util.Optional<java.lang.String> fingerprint,
                            java.util.Optional<java.lang.String> holderName,
                            java.util.Optional<java.lang.String> issuer,
                            java.util.Optional<java.lang.String> issuerCountry,
                            java.util.Optional<java.lang.String> lastFourCardNumber,
                            java.util.Optional<java.lang.String> applicationID,
                            java.util.Optional<java.lang.String> applicationName)
      • TerminalCard

        public TerminalCard()
    • Method Detail

      • entryMode

        public java.util.Optional<EntryMode> entryMode()
        How the card information was entered into the point of sale terminal.
      • brand

        public java.util.Optional<CardBrand> brand()
        The card brand.
      • bin

        public java.util.Optional<java.lang.String> bin()
      • cardType

        public java.util.Optional<CardType> cardType()
        The type of the card.
      • expiration

        public java.util.Optional<CardExpiration> expiration()
        The expiration date of the card or token.
      • fingerprint

        public java.util.Optional<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.
      • holderName

        public java.util.Optional<java.lang.String> holderName()
        The name of the cardholder as it appears on the card.
      • 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.
      • lastFourCardNumber

        public java.util.Optional<java.lang.String> lastFourCardNumber()
        Last four digits of the card number
      • applicationID

        public java.util.Optional<java.lang.String> applicationID()
        Identifier for the point of sale terminal application.
      • applicationName

        public java.util.Optional<java.lang.String> applicationName()
        Name label for the point of sale terminal application.
      • withEntryMode

        public TerminalCard withEntryMode​(EntryMode entryMode)
        How the card information was entered into the point of sale terminal.
      • withEntryMode

        public TerminalCard withEntryMode​(java.util.Optional<? extends EntryMode> entryMode)
        How the card information was entered into the point of sale terminal.
      • withBrand

        public TerminalCard withBrand​(java.util.Optional<? extends CardBrand> brand)
        The card brand.
      • withBin

        public TerminalCard withBin​(java.lang.String bin)
      • withBin

        public TerminalCard withBin​(java.util.Optional<java.lang.String> bin)
      • withCardType

        public TerminalCard withCardType​(java.util.Optional<? extends CardType> cardType)
        The type of the card.
      • withExpiration

        public TerminalCard withExpiration​(java.util.Optional<? extends CardExpiration> expiration)
        The expiration date of the card or token.
      • withFingerprint

        public TerminalCard 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.
      • withFingerprint

        public TerminalCard withFingerprint​(java.util.Optional<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.
      • withHolderName

        public TerminalCard withHolderName​(java.lang.String holderName)
        The name of the cardholder as it appears on the card.
      • withHolderName

        public TerminalCard withHolderName​(java.util.Optional<java.lang.String> holderName)
        The name of the cardholder as it appears on the card.
      • withIssuer

        public TerminalCard withIssuer​(java.lang.String issuer)
        Financial institution that issued the card.
      • withIssuer

        public TerminalCard withIssuer​(java.util.Optional<java.lang.String> issuer)
        Financial institution that issued the card.
      • withIssuerCountry

        public TerminalCard withIssuerCountry​(java.lang.String issuerCountry)
        Country where the card was issued.
      • withIssuerCountry

        public TerminalCard withIssuerCountry​(java.util.Optional<java.lang.String> issuerCountry)
        Country where the card was issued.
      • withLastFourCardNumber

        public TerminalCard withLastFourCardNumber​(java.lang.String lastFourCardNumber)
        Last four digits of the card number
      • withLastFourCardNumber

        public TerminalCard withLastFourCardNumber​(java.util.Optional<java.lang.String> lastFourCardNumber)
        Last four digits of the card number
      • withApplicationID

        public TerminalCard withApplicationID​(java.lang.String applicationID)
        Identifier for the point of sale terminal application.
      • withApplicationID

        public TerminalCard withApplicationID​(java.util.Optional<java.lang.String> applicationID)
        Identifier for the point of sale terminal application.
      • withApplicationName

        public TerminalCard withApplicationName​(java.lang.String applicationName)
        Name label for the point of sale terminal application.
      • withApplicationName

        public TerminalCard withApplicationName​(java.util.Optional<java.lang.String> applicationName)
        Name label for the point of sale terminal application.
      • 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