Package com.stripe.model
Class Charge.PaymentMethodDetails.Card
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.Charge.PaymentMethodDetails.Card
-
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Charge.PaymentMethodDetails
public static class Charge.PaymentMethodDetails.Card extends StripeObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Charge.PaymentMethodDetails.Card.Checks
static class
Charge.PaymentMethodDetails.Card.Installments
static class
Charge.PaymentMethodDetails.Card.ThreeDSecure
static class
Charge.PaymentMethodDetails.Card.Wallet
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Card()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getBrand()
Card brand.Charge.PaymentMethodDetails.Card.Checks
getChecks()
Check results by Card networks on Card address and CVC at time of payment.java.lang.String
getCountry()
Two-letter ISO code representing the country of the card.java.lang.String
getDescription()
A high-level description of the type of cards issued in this range.java.lang.Long
getExpMonth()
Two-digit number representing the card's expiration month.java.lang.Long
getExpYear()
Four-digit number representing the card's expiration year.java.lang.String
getFingerprint()
Uniquely identifies this particular card number.java.lang.String
getFunding()
Card funding type.java.lang.String
getIin()
Issuer identification number of the card.Charge.PaymentMethodDetails.Card.Installments
getInstallments()
Installment details for this payment (Mexico only).java.lang.String
getIssuer()
The name of the card's issuing bank.java.lang.String
getLast4()
The last four digits of the card.java.lang.Boolean
getMoto()
True if this payment was marked as MOTO and out of scope for SCA.java.lang.String
getNetwork()
Identifies which network this charge was processed on.Charge.PaymentMethodDetails.Card.ThreeDSecure
getThreeDSecure()
Populated if this transaction used 3D Secure authentication.Charge.PaymentMethodDetails.Card.Wallet
getWallet()
If this Card is part of a card wallet, this contains the details of the card wallet.int
hashCode()
void
setBrand(java.lang.String brand)
Card brand.void
setChecks(Charge.PaymentMethodDetails.Card.Checks checks)
Check results by Card networks on Card address and CVC at time of payment.void
setCountry(java.lang.String country)
Two-letter ISO code representing the country of the card.void
setDescription(java.lang.String description)
A high-level description of the type of cards issued in this range.void
setExpMonth(java.lang.Long expMonth)
Two-digit number representing the card's expiration month.void
setExpYear(java.lang.Long expYear)
Four-digit number representing the card's expiration year.void
setFingerprint(java.lang.String fingerprint)
Uniquely identifies this particular card number.void
setFunding(java.lang.String funding)
Card funding type.void
setIin(java.lang.String iin)
Issuer identification number of the card.void
setInstallments(Charge.PaymentMethodDetails.Card.Installments installments)
Installment details for this payment (Mexico only).void
setIssuer(java.lang.String issuer)
The name of the card's issuing bank.void
setLast4(java.lang.String last4)
The last four digits of the card.void
setMoto(java.lang.Boolean moto)
True if this payment was marked as MOTO and out of scope for SCA.void
setNetwork(java.lang.String network)
Identifies which network this charge was processed on.void
setThreeDSecure(Charge.PaymentMethodDetails.Card.ThreeDSecure threeDSecure)
Populated if this transaction used 3D Secure authentication.void
setWallet(Charge.PaymentMethodDetails.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
-
-
-
-
Method Detail
-
getBrand
public java.lang.String getBrand()
Card brand. Can beamex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
-
getChecks
public Charge.PaymentMethodDetails.Card.Checks getChecks()
Check results by Card networks on Card address and CVC at time of payment.
-
getCountry
public java.lang.String 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
public java.lang.String 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
public java.lang.Long getExpMonth()
Two-digit number representing the card's expiration month.
-
getExpYear
public java.lang.Long getExpYear()
Four-digit number representing the card's expiration year.
-
getFingerprint
public java.lang.String 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.
-
getFunding
public java.lang.String getFunding()
Card funding type. Can becredit
,debit
,prepaid
, orunknown
.
-
getIin
public java.lang.String getIin()
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
-
getInstallments
public Charge.PaymentMethodDetails.Card.Installments getInstallments()
Installment details for this payment (Mexico only).For more information, see the installments integration guide.
-
getIssuer
public java.lang.String getIssuer()
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
-
getLast4
public java.lang.String getLast4()
The last four digits of the card.
-
getMoto
public java.lang.Boolean getMoto()
True if this payment was marked as MOTO and out of scope for SCA.
-
getNetwork
public java.lang.String getNetwork()
Identifies which network this charge was processed on. Can beamex
,cartes_bancaires
,diners
,discover
,interac
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
-
getThreeDSecure
public Charge.PaymentMethodDetails.Card.ThreeDSecure getThreeDSecure()
Populated if this transaction used 3D Secure authentication.
-
getWallet
public Charge.PaymentMethodDetails.Card.Wallet getWallet()
If this Card is part of a card wallet, this contains the details of the card wallet.
-
setBrand
public void setBrand(java.lang.String brand)
Card brand. Can beamex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
-
setChecks
public void setChecks(Charge.PaymentMethodDetails.Card.Checks checks)
Check results by Card networks on Card address and CVC at time of payment.
-
setCountry
public void setCountry(java.lang.String country)
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
public void setDescription(java.lang.String description)
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
public void setExpMonth(java.lang.Long expMonth)
Two-digit number representing the card's expiration month.
-
setExpYear
public void setExpYear(java.lang.Long expYear)
Four-digit number representing the card's expiration year.
-
setFingerprint
public void setFingerprint(java.lang.String fingerprint)
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.
-
setFunding
public void setFunding(java.lang.String funding)
Card funding type. Can becredit
,debit
,prepaid
, orunknown
.
-
setIin
public void setIin(java.lang.String iin)
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
-
setInstallments
public void setInstallments(Charge.PaymentMethodDetails.Card.Installments installments)
Installment details for this payment (Mexico only).For more information, see the installments integration guide.
-
setIssuer
public void setIssuer(java.lang.String issuer)
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
-
setLast4
public void setLast4(java.lang.String last4)
The last four digits of the card.
-
setMoto
public void setMoto(java.lang.Boolean moto)
True if this payment was marked as MOTO and out of scope for SCA.
-
setNetwork
public void setNetwork(java.lang.String network)
Identifies which network this charge was processed on. Can beamex
,cartes_bancaires
,diners
,discover
,interac
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
-
setThreeDSecure
public void setThreeDSecure(Charge.PaymentMethodDetails.Card.ThreeDSecure threeDSecure)
Populated if this transaction used 3D Secure authentication.
-
setWallet
public void setWallet(Charge.PaymentMethodDetails.Card.Wallet wallet)
If this Card is part of a card wallet, this contains the details of the card wallet.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-