import type { Money } from './Money'; import type { AccountTransaction } from './AccountTransaction'; /** * @type GiftCertificate: Document representing a gift certificate. * * @property amount: The gift certificate amount. The user cannot change the gift certificate amount after the creation of the gift certificate. * * @property balance: The gift certificate balance. This is a computed attribute and cannot be modified. * * @property creationDate: Returns the value of attribute \'creationDate\'. * * @property description: The description of the gift certificate. * - **Max Length:** 4000 * * @property enabled: The enabled flag of the gift certificate. * * @property lastModified: Returns the value of attribute \'lastModified\'. * * @property maskedGiftCertificateCode: Masked code. * * @property merchantId: The merchant ID of the gift certificate. This is a unique attribute. This is a computed attribute and cannot be modified. This is used to get, update and the delete gift certificates. * * @property message: The message to the recipient of the gift certificate. * - **Max Length:** 4000 * * @property orderNo: The order number of the gift certificate. * * @property recipientEmail: The email address of the recipient of the gift certificate. * * @property recipientName: The recipient of the gift certificate. * - **Max Length:** 256 * * @property senderName: The sender of the gift certificate. * - **Max Length:** 256 * * @property status: The status of the gift certificate. While creating a gift certificate, user can set the status to either \"pending\" or \"issued\" only. * * @property transactions: The transactions of the gift certificate. * */ export type GiftCertificate = { amount?: Money; balance?: Money; creationDate?: string; description?: string; enabled?: boolean; lastModified?: string; maskedGiftCertificateCode?: string; merchantId?: string; message?: string; orderNo?: string; recipientEmail?: string; recipientName?: string; senderName?: string; status?: GiftCertificateStatusEnum; transactions?: Array; } & { [key: string]: any; }; export type GiftCertificateStatusEnum = 'issued' | 'partially_redeemed' | 'pending' | 'redeemed';