new module:models/PaymentCard()
Constructs a new PaymentCard
.
Document representing a payment card.
- Source:
Members
(inner) card_type :String
The payment card type (for example, 'Visa').
Type:
- String
- Source:
(inner) credit_card_expired :Boolean
A flag indicating if the credit card is expired.
Type:
- Boolean
- Source:
(inner) credit_card_token :String
A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store.
Type:
- String
- Source:
(inner) expiration_month :Number
The month when the payment card expires.
Type:
- Number
- Source:
(inner) expiration_year :Number
The year when the payment card expires.
Type:
- Number
- Source:
(inner) holder :String
The payment card holder.
Type:
- String
- Source:
(inner) issue_number :String
The payment card issue number.
Type:
- String
- Source:
(inner) masked_number :String
The masked credit card number.
Type:
- String
- Source:
(inner) number_last_digits :String
The last digits of credit card number.
Type:
- String
- Source:
(inner) valid_from_month :Number
The payment card valid from month.
Type:
- Number
- Source:
(inner) valid_from_year :Number
The payment card valid from year.
Type:
- Number
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/PaymentCard}
Constructs a PaymentCard
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/PaymentCard | Optional instance to populate. |
- Source:
Returns:
The populated PaymentCard
instance.