new module:models/CustomerPaymentCardRequest()
Constructs a new CustomerPaymentCardRequest
.
Document representing a customer payment card request.
Members
(inner) card_type :String
The payment card type (for example, 'Visa').
Type:
- String
(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
(inner) expiration_month :Number
The month when the payment card expires.
Type:
- Number
(inner) expiration_year :Number
The year when the payment card expires.
Type:
- Number
(inner) holder :String
The payment card holder.
Type:
- String
(inner) issue_number :String
The payment card issue number.
Type:
- String
(inner) number :String
The payment card number.
Type:
- String
(inner) valid_from_month :Number
The payment card valid from month.
Type:
- Number
(inner) valid_from_year :Number
The payment card valid from year.
Type:
- Number
Methods
(static) constructFromObject(data, obj) → {module:models/CustomerPaymentCardRequest}
Constructs a CustomerPaymentCardRequest
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/CustomerPaymentCardRequest | Optional instance to populate. |
Returns:
The populated CustomerPaymentCardRequest
instance.