1 /**
2 * @schema BaseProductVariant
3 * type: object
4 * description: The product variant's details.
5 * x-schemaName: BaseProductVariant
6 * required:
7 * - id
8 * - title
9 * - sku
10 * - barcode
11 * - ean
12 * - upc
13 * - thumbnail
14 * - allow_backorder
15 * - manage_inventory
16 * - hs_code
17 * - origin_country
18 * - mid_code
19 * - material
20 * - weight
21 * - length
22 * - height
23 * - width
24 * - options
25 * - created_at
26 * - updated_at
27 * - deleted_at
28 * properties:
29 * id:
30 * type: string
31 * title: id
32 * description: The variant's ID.
33 * title:
34 * type: string
35 * title: title
36 * description: The variant's title.
37 * sku:
38 * type: string
39 * title: sku
40 * description: The variant's SKU.
41 * barcode:
42 * type: string
43 * title: barcode
44 * description: The variant's barcode.
45 * ean:
46 * type: string
47 * title: ean
48 * description: The variant's EAN code.
49 * upc:
50 * type: string
51 * title: upc
52 * description: The variant's UPC.
53 * allow_backorder:
54 * type: boolean
55 * title: allow_backorder
56 * description: Whether the variant can be ordered even if it's out of stock.
57 * manage_inventory:
58 * type: boolean
59 * title: manage_inventory
60 * description: Whether the Medusa application manages the variant's inventory quantity and availablility. If disabled, the variant is always considered in stock.
61 * inventory_quantity:
62 * type: number
63 * title: inventory_quantity
64 * description: The variant's inventory quantity. This is only included if you pass in the `fields` query parameter a `+variants.inventory_quantity` parameter.
65 * hs_code:
66 * type: string
67 * title: hs_code
68 * description: The variant's HS code.
69 * origin_country:
70 * type: string
71 * title: origin_country
72 * description: The variant's origin country.
73 * mid_code:
74 * type: string
75 * title: mid_code
76 * description: The variant's MID code.
77 * material:
78 * type: string
79 * title: material
80 * description: The variant's material.
81 * weight:
82 * type: number
83 * title: weight
84 * description: The variant's weight.
85 * length:
86 * type: number
87 * title: length
88 * description: The variant's length.
89 * height:
90 * type: number
91 * title: height
92 * description: The variant's height.
93 * width:
94 * type: number
95 * title: width
96 * description: The variant's width.
97 * variant_rank:
98 * type: number
99 * title: variant_rank
100 * description: The variant's rank among its sibling variants.
101 * options:
102 * type: array
103 * description: The variant's option values.
104 * items:
105 * $ref: "#/components/schemas/BaseProductOptionValue"
106 * product:
107 * $ref: "#/components/schemas/BaseProduct"
108 * product_id:
109 * type: string
110 * title: product_id
111 * description: The ID of the product that the variant belongs to.
112 * calculated_price:
113 * $ref: "#/components/schemas/BaseCalculatedPriceSet"
114 * created_at:
115 * type: string
116 * format: date-time
117 * title: created_at
118 * description: The date the variant was created.
119 * updated_at:
120 * type: string
121 * format: date-time
122 * title: updated_at
123 * description: The date the variant was updated.
124 * deleted_at:
125 * type: string
126 * format: date-time
127 * title: deleted_at
128 * description: The date the variant was deleted.
129 * metadata:
130 * type: object
131 * description: The variant's metadata, can hold custom key-value pairs.
132 * externalDocs:
133 * url: https://docs.medusajs.com/api/store#manage-metadata
134 * description: Learn how to manage metadata
135 * thumbnail:
136 * type: string
137 * title: thumbnail
138 * description: The variant's thumbnail.
139 * images:
140 * type: array
141 * description: The variant's images.
142 * items:
143 * $ref: "#/components/schemas/BaseProductImage"
144 *
145 */
146