Package com.stripe.model
Class ConfirmationToken.PaymentMethodPreview.Card
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.ConfirmationToken.PaymentMethodPreview.Card
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- ConfirmationToken.PaymentMethodPreview
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
The type of mobile wallet, one ofapple_pay
,google_pay
,samsung_pay
, orunknown
.static class
static class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getBrand()
Card brand.Checks on Card address and CVC if provided.Two-letter ISO code representing the country of the card.A high-level description of the type of cards issued in this range.The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards.Two-digit number representing the card's expiration month.Four-digit number representing the card's expiration year.Uniquely identifies this particular card number.Card funding type.Details of the original PaymentMethod that created this object.getIin()
Issuer identification number of the card.The name of the card's issuing bank.getLast4()
The last four digits of the card.Contains information about card networks that can be used to process the payment.Contains details on how this Card may be used for 3D Secure authentication.If this Card is part of a card wallet, this contains the details of the card wallet.int
hashCode()
void
Card brand.void
Checks on Card address and CVC if provided.void
setCountry
(String country) Two-letter ISO code representing the country of the card.void
setDescription
(String description) A high-level description of the type of cards issued in this range.void
setDisplayBrand
(String displayBrand) The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards.void
setExpMonth
(Long expMonth) Two-digit number representing the card's expiration month.void
setExpYear
(Long expYear) Four-digit number representing the card's expiration year.void
setFingerprint
(String fingerprint) Uniquely identifies this particular card number.void
setFunding
(String funding) Card funding type.void
Details of the original PaymentMethod that created this object.void
Issuer identification number of the card.void
The name of the card's issuing bank.void
The last four digits of the card.void
Contains information about card networks that can be used to process the payment.void
setThreeDSecureUsage
(ConfirmationToken.PaymentMethodPreview.Card.ThreeDSecureUsage threeDSecureUsage) Contains details on how this Card may be used for 3D Secure authentication.void
If this Card is part of a card wallet, this contains the details of the card wallet.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
getBrand
Card brand. Can beamex
,diners
,discover
,eftpos_au
,jcb
,mastercard
,unionpay
,visa
, orunknown
. -
getChecks
Checks on Card address and CVC if provided. -
getCountry
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. -
getDescription
A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) -
getDisplayBrand
The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can beamerican_express
,cartes_bancaires
,diners_club
,discover
,eftpos_australia
,interac
,jcb
,mastercard
,union_pay
,visa
, orother
and may contain more values in the future. -
getExpMonth
Two-digit number representing the card's expiration month. -
getExpYear
Four-digit number representing the card's expiration year. -
getFingerprint
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.
-
getFunding
Card funding type. Can becredit
,debit
,prepaid
, orunknown
. -
getGeneratedFrom
Details of the original PaymentMethod that created this object. -
getIin
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) -
getIssuer
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) -
getLast4
The last four digits of the card. -
getNetworks
Contains information about card networks that can be used to process the payment. -
getThreeDSecureUsage
Contains details on how this Card may be used for 3D Secure authentication. -
getWallet
If this Card is part of a card wallet, this contains the details of the card wallet. -
setBrand
Card brand. Can beamex
,diners
,discover
,eftpos_au
,jcb
,mastercard
,unionpay
,visa
, orunknown
. -
setChecks
Checks on Card address and CVC if provided. -
setCountry
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. -
setDescription
A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) -
setDisplayBrand
The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can beamerican_express
,cartes_bancaires
,diners_club
,discover
,eftpos_australia
,interac
,jcb
,mastercard
,union_pay
,visa
, orother
and may contain more values in the future. -
setExpMonth
Two-digit number representing the card's expiration month. -
setExpYear
Four-digit number representing the card's expiration year. -
setFingerprint
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.
-
setFunding
Card funding type. Can becredit
,debit
,prepaid
, orunknown
. -
setGeneratedFrom
public void setGeneratedFrom(ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom generatedFrom) Details of the original PaymentMethod that created this object. -
setIin
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) -
setIssuer
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) -
setLast4
The last four digits of the card. -
setNetworks
Contains information about card networks that can be used to process the payment. -
setThreeDSecureUsage
public void setThreeDSecureUsage(ConfirmationToken.PaymentMethodPreview.Card.ThreeDSecureUsage threeDSecureUsage) Contains details on how this Card may be used for 3D Secure authentication. -
setWallet
If this Card is part of a card wallet, this contains the details of the card wallet. -
equals
-
canEqual
-
hashCode
public int hashCode()
-