sc-cobre-facil
Version:
Biblioteca TypeScript para consumir a API da Cobre Fácil
31 lines • 1.42 kB
TypeScript
/**
* Represents a payment card associated with a customer.
*
* @interface Card
*
* @property {string} id - Unique identifier for the card.
* @property {string} customer_id - Unique identifier for the customer who owns the card.
* @property {0 | 1} default - Indicates whether the card is the default for the account (1 for yes, 0 for no).
* @property {"visa" | "mastercard"} brand - The card brand (e.g., Visa or Mastercard).
* @property {string} first6_digits - The first six digits of the card number.
* @property {string} last4_digits - The last four digits of the card number.
* @property {string} expiration_month - The expiration month of the card (formatted as MM).
* @property {string} expiration_year - The expiration year of the card (formatted as YYYY).
* @property {string} created_at - The date and time when the card was registered.
* @property {string} updated_at - The date and time when the card was last updated.
* @property {string | null} deleted_at - The date and time when the card was deleted, or null if it has not been deleted.
*/
export interface Card {
id: string;
customer_id: string;
default: 0 | 1;
brand: "visa" | "mastercard";
first6_digits: string;
last4_digits: string;
expiration_month: string;
expiration_year: string;
created_at: string;
updated_at: string;
deleted_at: string | null;
}
//# sourceMappingURL=Card.d.ts.map