Class ApplePayResponse


  • public class ApplePayResponse
    extends java.lang.Object
    ApplePayResponse

    Describes an Apple Pay token on a Moov account.

    • Constructor Detail

      • ApplePayResponse

        public ApplePayResponse​(CardBrand brand,
                                CardType cardType,
                                java.lang.String cardDisplayName,
                                java.lang.String fingerprint,
                                CardExpiration expiration,
                                java.lang.String dynamicLastFour,
                                java.util.Optional<java.lang.String> issuerCountry)
      • ApplePayResponse

        public ApplePayResponse​(CardBrand brand,
                                CardType cardType,
                                java.lang.String cardDisplayName,
                                java.lang.String fingerprint,
                                CardExpiration expiration,
                                java.lang.String dynamicLastFour)
    • Method Detail

      • brand

        public CardBrand brand()
        The card brand.
      • cardType

        public CardType cardType()
        The type of the card.
      • cardDisplayName

        public java.lang.String cardDisplayName()
        User-friendly name of the tokenized card returned by Apple.

        It usually contains the brand and the last four digits of the underlying card. There is no standard format.

      • 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.
      • expiration

        public CardExpiration expiration()
        The expiration date of the card or token.
      • dynamicLastFour

        public java.lang.String dynamicLastFour()
        The last four digits of the Apple Pay token, which may differ from the tokenized card's last four digits.
      • issuerCountry

        public java.util.Optional<java.lang.String> issuerCountry()
        Country where the underlying card was issued.
      • withCardDisplayName

        public ApplePayResponse withCardDisplayName​(java.lang.String cardDisplayName)
        User-friendly name of the tokenized card returned by Apple.

        It usually contains the brand and the last four digits of the underlying card. There is no standard format.

      • withFingerprint

        public ApplePayResponse 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.
      • withDynamicLastFour

        public ApplePayResponse withDynamicLastFour​(java.lang.String dynamicLastFour)
        The last four digits of the Apple Pay token, which may differ from the tokenized card's last four digits.
      • withIssuerCountry

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

        public ApplePayResponse withIssuerCountry​(java.util.Optional<java.lang.String> issuerCountry)
        Country where the underlying card was issued.
      • 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