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