1 /**
2 * @schema AdminCreateGiftCardParams
3 * type: object
4 * description: The details of the gift card to create.
5 * x-schemaName: AdminCreateGiftCardParams
6 * required:
7 * - code
8 * - value
9 * - currency_code
10 * - expires_at
11 * - reference_id
12 * - reference
13 * - line_item_id
14 * - customer_id
15 * - metadata
16 * properties:
17 * code:
18 * type: string
19 * title: code
20 * description: The gift card's code.
21 * value:
22 * type: number
23 * title: value
24 * description: The gift card's amount.
25 * example: 20
26 * currency_code:
27 * type: string
28 * title: currency_code
29 * description: The gift card's currency code.
30 * example: usd
31 * expires_at:
32 * type: string
33 * title: expires_at
34 * description: The date the gift card expires at.
35 * reference_id:
36 * type: string
37 * title: reference_id
38 * description: The gift card's reference ID.
39 * reference:
40 * type: string
41 * title: reference
42 * description: The gift card's reference.
43 * line_item_id:
44 * type: string
45 * title: line_item_id
46 * description: The ID of the line item associated with the gift card.
47 * customer_id:
48 * type: string
49 * title: customer_id
50 * description: The ID of the customer associated with the gift card.
51 * metadata:
52 * type: object
53 * description: The gift card's metadata, can hold custom key-value pairs.
54 * externalDocs:
55 * url: https://docs.medusajs.com/api/admin#manage-metadata
56 * description: Learn how to manage metadata
57 *
58 */
59