gringotts v1.1.0 Gringotts.CreditCard View Source
Defines a struct for (credit) cards and some utilities.
Link to this section Summary
Functions
Returns the full name of the card holder
Link to this section Types
Represents a Credit Card.
| Field | Type | Description |
|---|---|---|
number | string | The card number. |
month | integer | Month of expiry (a number in the 1..12 range). |
year | integer | Year of expiry. |
first_name | string | First name of the card holder (as on card). |
last_name | string | Last name of the card holder (as on card). |
verification_code | string | The Card Verification Code, usually a 3-4 digit number on the back of the card. |
brand | string | The brand name of the card network (in some cases also the card issuer) in UPPERCASE. Some popular card networks are Visa, MasterCard, Maestro, Diner’s Club etc. |
Link to this section Functions
Returns the full name of the card holder.
Joins first_name and last_name with a space in between.