Package com.stripe.model
Class PaymentMethod.Card
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentMethod.Card
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentMethod
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
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.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.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
setChecks
(PaymentMethod.Card.Checks checks) 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
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
Issuer identification number of the card.void
The name of the card's issuing bank.void
The last four digits of the card.void
setNetworks
(PaymentMethod.Card.Networks networks) Contains information about card networks that can be used to process the payment.void
setThreeDSecureUsage
(PaymentMethod.Card.ThreeDSecureUsage threeDSecureUsage) Contains details on how this Card may be used for 3D Secure authentication.void
setWallet
(PaymentMethod.Card.Wallet wallet) 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
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
getBrand
Card brand. Can beamex
,diners
,discover
,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.) -
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.Starting May 1, 2021, card fingerprint in India for Connect will change 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
. -
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
,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.) -
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.Starting May 1, 2021, card fingerprint in India for Connect will change 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
. -
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
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()
-