Raw
1 type: object
2 description: The gift card's details.
3 x-schemaName: StoreGiftCard
4 required:
5 - customer
6 - line_item
7 - id
8 - code
9 - status
10 - value
11 - currency_code
12 - customer_id
13 - reference_id
14 - note
15 - reference
16 - expires_at
17 - created_at
18 - updated_at
19 properties:
20 customer:
21 $ref: ./StoreCustomer.yaml
22 line_item:
23 $ref: ./StoreOrderLineItem.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 that the gift card belongs to.
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: A note with more information about the gift card.
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.
67 format: date-time
68 created_at:
69 type: string
70 format: date-time
71 title: created_at
72 description: The date the gift card was created.
73 updated_at:
74 type: string
75 format: date-time
76 title: updated_at
77 description: The date the gift card was updated.