/**
* The JSON response structure of the Tokenize Giftcard endpoint.
*
* @category Model
*/
export interface TokenizeGiftcardResponse {
/* The current available balance of the gift card. */
giftCard: {
/* The new payment instrument id to be used for payments. */
paymentInstrumentId: string;
/* The status of the payment instrument in the container. */
status: "UNVERIFIED_PERSISTENT" | "VERIFIED";
/* The timestamp the payment instrument was last updated in the container. The timestamp format is ISO8601. */
lastUpdated: string;
/* The timestamp the payment instrument was last used in the container. The timestamp format is ISO8601. Will be null if never used. */
lastUsed: string;
/* A flag to indicate if this payment instrument is the primary instrument in the container. */
primary: boolean;
/* A flag to indicate if the merchant profile in the container allows the use of this payment instrument. */
allowed: boolean;
/* The gift card program name. */
programName: string;
/* The suffix (last 4 digits) of the gift card number. */
cardSuffix: string;
};
balance: number;
/* The day of the expiry date of the gift card. */
expiryDay: string;
/* The month of the expiry date of the gift card. */
expiryMonth: string;
/* The year of the expiry date of the gift card. */
expiryYear: string;
/* A flag to indicate if the gift card is expired. */
expired: boolean;
}
Source