Class: module:models/PaymentCardSpec

module:models/PaymentCardSpec()

new module:models/PaymentCardSpec()

Constructs a new PaymentCardSpec. Document representing the specification for a payment card.

Source:

Members

(inner) card_type :String

The type of the payment card.

Type:
  • String
Source:

(inner) checksum_verification_enabled :Boolean

A flag indicating whether the card number is verified using the Luhn checksum algorithm.

Type:
  • Boolean
Source:

(inner) description :String

The localized description of the payment card.

Type:
  • String
Source:

(inner) image :String

The URL to the image that represents the payment card.

Type:
  • String
Source:

(inner) name :String

The localized name of the payment card.

Type:
  • String
Source:

(inner) number_lengths :Array.<String>

The sorted list of number lengths (individual lengths as well as length ranges).

Type:
  • Array.<String>
Source:

(inner) number_prefixes :Array.<String>

The sorted list of number prefixes (individual prefixes as well as prefix ranges).

Type:
  • Array.<String>
Source:

(inner) security_code_length :Number

The length of the security code for this card.

Type:
  • Number
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/PaymentCardSpec}

Constructs a PaymentCardSpec 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/PaymentCardSpec

Optional instance to populate.

Source:
Returns:

The populated PaymentCardSpec instance.

Type
module:models/PaymentCardSpec