1 /**
2 * @schema BaseProduct
3 * type: object
4 * description: The product's details.
5 * x-schemaName: BaseProduct
6 * required:
7 * - id
8 * - title
9 * - handle
10 * - subtitle
11 * - description
12 * - is_giftcard
13 * - status
14 * - thumbnail
15 * - width
16 * - weight
17 * - length
18 * - height
19 * - origin_country
20 * - hs_code
21 * - mid_code
22 * - material
23 * - collection_id
24 * - type_id
25 * - variants
26 * - options
27 * - images
28 * - discountable
29 * - external_id
30 * - created_at
31 * - updated_at
32 * - deleted_at
33 * properties:
34 * collection:
35 * $ref: "#/components/schemas/BaseCollection"
36 * categories:
37 * type: array
38 * description: The product's categories.
39 * items:
40 * $ref: "#/components/schemas/BaseProductCategory"
41 * variants:
42 * type: array
43 * description: The product's variants.
44 * items:
45 * $ref: "#/components/schemas/BaseProductVariant"
46 * type:
47 * $ref: "#/components/schemas/BaseProductType"
48 * tags:
49 * type: array
50 * description: The product's tags.
51 * items:
52 * $ref: "#/components/schemas/BaseProductTag"
53 * length:
54 * type: number
55 * title: length
56 * description: The product's length.
57 * title:
58 * type: string
59 * title: title
60 * description: The product's title.
61 * status:
62 * type: string
63 * description: The product's status.
64 * enum:
65 * - draft
66 * - proposed
67 * - published
68 * - rejected
69 * options:
70 * type: array
71 * description: The product's options.
72 * items:
73 * $ref: "#/components/schemas/BaseProductOption"
74 * description:
75 * type: string
76 * title: description
77 * description: The product's description.
78 * id:
79 * type: string
80 * title: id
81 * description: The product's ID.
82 * metadata:
83 * type: object
84 * description: The product's metadata, can hold custom key-value pairs.
85 * externalDocs:
86 * url: https://docs.medusajs.com/api/store#manage-metadata
87 * description: Learn how to manage metadata
88 * created_at:
89 * type: string
90 * format: date-time
91 * title: created_at
92 * description: The date the product was created.
93 * updated_at:
94 * type: string
95 * format: date-time
96 * title: updated_at
97 * description: The date the product was updated.
98 * handle:
99 * type: string
100 * title: handle
101 * description: The product's unique handle.
102 * subtitle:
103 * type: string
104 * title: subtitle
105 * description: The product's subtitle.
106 * is_giftcard:
107 * type: boolean
108 * title: is_giftcard
109 * description: Whether the product is a gift card.
110 * thumbnail:
111 * type: string
112 * title: thumbnail
113 * description: The product's thumbnail.
114 * width:
115 * type: number
116 * title: width
117 * description: The product's width.
118 * weight:
119 * type: number
120 * title: weight
121 * description: The product's weight.
122 * height:
123 * type: number
124 * title: height
125 * description: The product's height.
126 * origin_country:
127 * type: string
128 * title: origin_country
129 * description: The product's origin country.
130 * hs_code:
131 * type: string
132 * title: hs_code
133 * description: The product's HS code.
134 * mid_code:
135 * type: string
136 * title: mid_code
137 * description: The product's MID code.
138 * material:
139 * type: string
140 * title: material
141 * description: The product's material.
142 * collection_id:
143 * type: string
144 * title: collection_id
145 * description: The ID of the collection that the product belongs to.
146 * type_id:
147 * type: string
148 * title: type_id
149 * description: The ID of the product's type.
150 * images:
151 * type: array
152 * description: The product's images.
153 * items:
154 * $ref: "#/components/schemas/BaseProductImage"
155 * discountable:
156 * type: boolean
157 * title: discountable
158 * description: Whether discounts can be applied on the product.
159 * external_id:
160 * type: string
161 * title: external_id
162 * description: The ID of a product in an external system, such as an ERP or CMS.
163 * deleted_at:
164 * type: string
165 * format: date-time
166 * title: deleted_at
167 * description: The date the product was deleted.
168 *
169 */
170