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