1 /**
2 * @schema StoreGiftCard
3 * type: object
4 * description: The gift card's details.
5 * x-schemaName: StoreGiftCard
6 * required:
7 * - customer
8 * - line_item
9 * - id
10 * - code
11 * - status
12 * - value
13 * - currency_code
14 * - customer_id
15 * - reference_id
16 * - note
17 * - reference
18 * - expires_at
19 * - created_at
20 * - updated_at
21 * properties:
22 * customer:
23 * $ref: "#/components/schemas/StoreCustomer"
24 * line_item:
25 * $ref: "#/components/schemas/StoreOrderLineItem"
26 * id:
27 * type: string
28 * title: id
29 * description: The gift card's ID.
30 * code:
31 * type: string
32 * title: code
33 * description: The gift card's code.
34 * status:
35 * type: string
36 * description: The gift card's status.
37 * enum:
38 * - pending
39 * - redeemed
40 * value:
41 * type: number
42 * title: value
43 * description: The gift card's amount.
44 * currency_code:
45 * type: string
46 * title: currency_code
47 * description: The gift card's currency code.
48 * example: usd
49 * customer_id:
50 * type: string
51 * title: customer_id
52 * description: The ID of the customer that the gift card belongs to.
53 * reference_id:
54 * type: string
55 * title: reference_id
56 * description: The gift card's reference ID.
57 * note:
58 * type: string
59 * title: note
60 * description: A note with more information about the gift card.
61 * reference:
62 * type: string
63 * title: reference
64 * description: The gift card's reference.
65 * expires_at:
66 * type: string
67 * title: expires_at
68 * description: The date the gift card expires.
69 * format: date-time
70 * created_at:
71 * type: string
72 * format: date-time
73 * title: created_at
74 * description: The date the gift card was created.
75 * updated_at:
76 * type: string
77 * format: date-time
78 * title: updated_at
79 * description: The date the gift card was updated.
80 *
81 */