1 /**
2 * @schema AdminAddDraftOrderItems
3 * type: object
4 * description: The details of the items to add to a draft order.
5 * x-schemaName: AdminAddDraftOrderItems
6 * properties:
7 * items:
8 * type: array
9 * description: The items to add to the draft order.
10 * items:
11 * type: object
12 * description: The item's details
13 * required:
14 * - quantity
15 * properties:
16 * quantity:
17 * type: number
18 * title: quantity
19 * description: The item's quantity.
20 * variant_id:
21 * type: string
22 * title: variant_id
23 * description: The ID of the variant to add to the draft order.
24 * title:
25 * type: string
26 * title: title
27 * description: The item's title.
28 * unit_price:
29 * type: number
30 * title: unit_price
31 * description: The item's unit price.
32 * compare_at_unit_price:
33 * type: number
34 * title: compare_at_unit_price
35 * description: The original price of the item before a promotion or sale.
36 * internal_note:
37 * type: string
38 * title: internal_note
39 * description: A note viewed only by admin users about the item.
40 * allow_backorder:
41 * type: boolean
42 * title: allow_backorder
43 * description: Whether the item can be purchased if it's out of stock.
44 * metadata:
45 * type: object
46 * description: The item's metadata, can hold custom key-value pairs.
47 * externalDocs:
48 * url: https://docs.medusajs.com/api/admin#manage-metadata
49 * description: Learn how to manage metadata
50 *
51 */
52