Package io.moov.sdk.models.components
Class ApplePayResponse
- java.lang.Object
-
- io.moov.sdk.models.components.ApplePayResponse
-
public class ApplePayResponse extends java.lang.ObjectApplePayResponseDescribes an Apple Pay token on a Moov account.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplePayResponse.Builder
-
Constructor Summary
Constructors Constructor Description ApplePayResponse(CardBrand brand, CardType cardType, java.lang.String cardDisplayName, java.lang.String fingerprint, CardExpiration expiration, java.lang.String dynamicLastFour)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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardBrandbrand()The card brand.static ApplePayResponse.Builderbuilder()java.lang.StringcardDisplayName()User-friendly name of the tokenized card returned by Apple.CardTypecardType()The type of the card.java.lang.StringdynamicLastFour()The last four digits of the Apple Pay token, which may differ from the tokenized card's last four digits.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>issuerCountry()Country where the underlying card was issued.java.lang.StringtoString()ApplePayResponsewithBrand(CardBrand brand)The card brand.ApplePayResponsewithCardDisplayName(java.lang.String cardDisplayName)User-friendly name of the tokenized card returned by Apple.ApplePayResponsewithCardType(CardType cardType)The type of the card.ApplePayResponsewithDynamicLastFour(java.lang.String dynamicLastFour)The last four digits of the Apple Pay token, which may differ from the tokenized card's last four digits.ApplePayResponsewithExpiration(CardExpiration expiration)The expiration date of the card or token.ApplePayResponsewithFingerprint(java.lang.String fingerprint)Uniquely identifies a linked payment card or token.ApplePayResponsewithIssuerCountry(java.lang.String issuerCountry)Country where the underlying card was issued.ApplePayResponsewithIssuerCountry(java.util.Optional<java.lang.String> issuerCountry)Country where the underlying card was issued.
-
-
-
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.
-
builder
public static ApplePayResponse.Builder builder()
-
withBrand
public ApplePayResponse withBrand(CardBrand brand)
The card brand.
-
withCardType
public ApplePayResponse withCardType(CardType cardType)
The type of the card.
-
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.
-
withExpiration
public ApplePayResponse withExpiration(CardExpiration expiration)
The expiration date of the card or token.
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-