public class Card
Represents the non-confidential details of a card.
| Constructor and Description |
|---|
Card(Card.Brand brand,
java.lang.String lastFourDigits,
int expirationMonth,
int expirationYear,
java.lang.String postalCode)
Represents the non-confidential details of a card.
|
| Modifier and Type | Method and Description |
|---|---|
Card.Brand |
component1()
The brand
|
java.lang.String |
component2()
The last 4 digits of this card
|
int |
component3()
The expiration month of the card.
|
int |
component4()
The four-digit expiration year of the card.
|
java.lang.String |
component5()
The billing postal code associated with the card.
|
Card |
copy(Card.Brand brand,
java.lang.String lastFourDigits,
int expirationMonth,
int expirationYear,
java.lang.String postalCode)
Represents the non-confidential details of a card.
|
boolean |
equals(java.lang.Object p) |
Card.Brand |
getBrand()
The brand
|
int |
getExpirationMonth()
The expiration month of the card.
|
int |
getExpirationYear()
The four-digit expiration year of the card.
|
java.lang.String |
getLastFourDigits()
The last 4 digits of this card
|
java.lang.String |
getPostalCode()
The billing postal code associated with the card.
|
int |
hashCode() |
java.lang.String |
toString() |
public Card(Card.Brand brand, java.lang.String lastFourDigits, int expirationMonth, int expirationYear, java.lang.String postalCode)
Represents the non-confidential details of a card.
brand - The brand (for example, VISA) of the card.lastFourDigits - The last 4 digits of this card's number.expirationMonth - The expiration month of the card. Ranges between 1 and 12,with 1 corresponding to January and 12 to December.expirationYear - The four-digit expiration year of the card.postalCode - The billing postal code associated with the card.public Card.Brand getBrand()
The brand
(for example, VISA) of the card.
public java.lang.String getLastFourDigits()
The last 4 digits of this card
's number.
public int getExpirationMonth()
The expiration month of the card.
Ranges between 1 and 12,with 1 corresponding to January and 12 to December.
public int getExpirationYear()
The four-digit expiration year of the card.
public java.lang.String getPostalCode()
The billing postal code associated with the card.
public Card.Brand component1()
The brand
(for example, VISA) of the card.
public java.lang.String component2()
The last 4 digits of this card
's number.
public int component3()
The expiration month of the card.
Ranges between 1 and 12,with 1 corresponding to January and 12 to December.
public int component4()
The four-digit expiration year of the card.
public java.lang.String component5()
The billing postal code associated with the card.
public Card copy(Card.Brand brand, java.lang.String lastFourDigits, int expirationMonth, int expirationYear, java.lang.String postalCode)
Represents the non-confidential details of a card.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)