1 /**
2 * @schema AdminCreateProductVariant
3 * type: object
4 * description: The product variant's details.
5 * x-schemaName: AdminCreateProductVariant
6 * required:
7 * - title
8 * - prices
9 * properties:
10 * title:
11 * type: string
12 * title: title
13 * description: The variant's title.
14 * sku:
15 * type: string
16 * title: sku
17 * description: The variant's SKU.
18 * ean:
19 * type: string
20 * title: ean
21 * description: The variant's EAN.
22 * upc:
23 * type: string
24 * title: upc
25 * description: The variant's UPC.
26 * barcode:
27 * type: string
28 * title: barcode
29 * description: The variant's barcode.
30 * hs_code:
31 * type: string
32 * title: hs_code
33 * description: The variant's HS code.
34 * mid_code:
35 * type: string
36 * title: mid_code
37 * description: The variant's MID code.
38 * allow_backorder:
39 * type: boolean
40 * title: allow_backorder
41 * description: Whether it's allowed to order this variant when it's out of stock.
42 * manage_inventory:
43 * type: boolean
44 * title: manage_inventory
45 * description: Whether Medusa manages the variant's inventory quantity. If disabled, the product variant is always considered in stock.
46 * variant_rank:
47 * type: number
48 * title: variant_rank
49 * description: The sorting order of the variant among other variants in the product.
50 * weight:
51 * type: number
52 * title: weight
53 * description: The variant's weight.
54 * length:
55 * type: number
56 * title: length
57 * description: The variant's length.
58 * height:
59 * type: number
60 * title: height
61 * description: The variant's height.
62 * width:
63 * type: number
64 * title: width
65 * description: The variant's width.
66 * origin_country:
67 * type: string
68 * title: origin_country
69 * description: The variant's origin country.
70 * material:
71 * type: string
72 * title: material
73 * description: The variant's material.
74 * metadata:
75 * type: object
76 * description: The variant's metadata, used to store custom key-value pairs.
77 * externalDocs:
78 * url: https://docs.medusajs.com/api/admin#manage-metadata
79 * description: Learn how to manage metadata
80 * prices:
81 * type: array
82 * description: The variant's prices.
83 * items:
84 * $ref: "#/components/schemas/AdminCreateProductVariantPrice"
85 * options:
86 * type: object
87 * description: The variant's options, where the key is an option's name, and the value is the option's value.
88 * example:
89 * Color: Black
90 * inventory_items:
91 * type: array
92 * description: The variant's inventory items to create.
93 * items:
94 * $ref: "#/components/schemas/AdminCreateProductVariantInventoryKit"
95 *
96 */
97