1 /**
2 * @schema StoreOrderLineItem
3 * type: object
4 * description: The item's details.
5 * x-schemaName: StoreOrderLineItem
6 * required:
7 * - detail
8 * - title
9 * - id
10 * - metadata
11 * - created_at
12 * - updated_at
13 * - item_total
14 * - item_subtotal
15 * - item_tax_total
16 * - original_total
17 * - original_subtotal
18 * - original_tax_total
19 * - total
20 * - subtotal
21 * - tax_total
22 * - discount_total
23 * - discount_tax_total
24 * - subtitle
25 * - thumbnail
26 * - variant_id
27 * - product_id
28 * - product_title
29 * - product_description
30 * - product_subtitle
31 * - product_type_id
32 * - product_type
33 * - product_collection
34 * - product_handle
35 * - variant_sku
36 * - variant_barcode
37 * - variant_title
38 * - variant_option_values
39 * - requires_shipping
40 * - is_discountable
41 * - is_tax_inclusive
42 * - unit_price
43 * - quantity
44 * - refundable_total
45 * - refundable_total_per_unit
46 * properties:
47 * variant:
48 * $ref: "#/components/schemas/StoreProductVariant"
49 * product:
50 * $ref: "#/components/schemas/StoreProduct"
51 * tax_lines:
52 * type: array
53 * description: The item's tax lines.
54 * items:
55 * allOf:
56 * - $ref: "#/components/schemas/BaseOrderLineItemTaxLine"
57 * - type: object
58 * description: The tax line's tax lines.
59 * required:
60 * - item
61 * properties:
62 * item:
63 * $ref: "#/components/schemas/StoreOrderLineItem"
64 * adjustments:
65 * type: array
66 * description: The item's adjustments.
67 * items:
68 * allOf:
69 * - $ref: "#/components/schemas/BaseOrderLineItemAdjustment"
70 * - type: object
71 * description: The adjustment's adjustments.
72 * required:
73 * - item
74 * properties:
75 * item:
76 * $ref: "#/components/schemas/StoreOrderLineItem"
77 * detail:
78 * allOf:
79 * - $ref: "#/components/schemas/BaseOrderItemDetail"
80 * - type: object
81 * description: The item's detail.
82 * required:
83 * - item
84 * properties:
85 * item:
86 * $ref: "#/components/schemas/StoreOrderLineItem"
87 * title:
88 * type: string
89 * title: title
90 * description: The item's title.
91 * id:
92 * type: string
93 * title: id
94 * description: The item's ID.
95 * metadata:
96 * type: object
97 * description: Custom key-value pairs of the item.
98 * externalDocs:
99 * url: https://docs.medusajs.com/api/store#manage-metadata
100 * description: Learn how to manage metadata
101 * created_at:
102 * type: string
103 * format: date-time
104 * title: created_at
105 * description: The date the item was created.
106 * updated_at:
107 * type: string
108 * format: date-time
109 * title: updated_at
110 * description: The date the item was updated.
111 * original_total:
112 * type: number
113 * title: original_total
114 * description: The item's total including taxes, excluding promotions.
115 * original_subtotal:
116 * type: number
117 * title: original_subtotal
118 * description: The item's total excluding taxes, including promotions.
119 * original_tax_total:
120 * type: number
121 * title: original_tax_total
122 * description: The total taxes of the item, excluding promotions.
123 * item_total:
124 * type: number
125 * title: item_total
126 * description: The total taxes of the item, including promotions.
127 * item_subtotal:
128 * type: number
129 * title: item_subtotal
130 * description: The item's total excluding taxes, including promotions.
131 * item_tax_total:
132 * type: number
133 * title: item_tax_total
134 * description: The total taxes of the item, including promotions.
135 * total:
136 * type: number
137 * title: total
138 * description: The item's total, including taxes and promotions.
139 * subtotal:
140 * type: number
141 * title: subtotal
142 * description: The item's subtotal excluding taxes, including promotions.
143 * tax_total:
144 * type: number
145 * title: tax_total
146 * description: The tax total of the item including promotions.
147 * discount_total:
148 * type: number
149 * title: discount_total
150 * description: The total discount amount of the item.
151 * discount_tax_total:
152 * type: number
153 * title: discount_tax_total
154 * description: The total taxes applied on the discounted amount.
155 * refundable_total:
156 * type: number
157 * title: refundable_total
158 * description: The total refundable amount of the item's total.
159 * refundable_total_per_unit:
160 * type: number
161 * title: refundable_total_per_unit
162 * description: The total refundable amount of the item's total for a single quantity.
163 * subtitle:
164 * type: string
165 * title: subtitle
166 * description: The item's subtitle.
167 * thumbnail:
168 * type: string
169 * title: thumbnail
170 * description: The item's thumbnail.
171 * variant_id:
172 * type: string
173 * title: variant_id
174 * description: The ID of the associated variant.
175 * product_id:
176 * type: string
177 * title: product_id
178 * description: The ID of the associated product.
179 * product_title:
180 * type: string
181 * title: product_title
182 * description: The title of the associated product.
183 * product_description:
184 * type: string
185 * title: product_description
186 * description: The description of the associated product.
187 * product_subtitle:
188 * type: string
189 * title: product_subtitle
190 * description: The subtitle of the associated product.
191 * product_type:
192 * type: string
193 * title: product_type
194 * description: The type of the associated product.
195 * product_collection:
196 * type: string
197 * title: product_collection
198 * description: The ID of the associated product's collection.
199 * product_handle:
200 * type: string
201 * title: product_handle
202 * description: The handle of the associated product.
203 * variant_sku:
204 * type: string
205 * title: variant_sku
206 * description: The SKU of the associated variant.
207 * variant_barcode:
208 * type: string
209 * title: variant_barcode
210 * description: The barcode of the associated variant.
211 * variant_title:
212 * type: string
213 * title: variant_title
214 * description: The title of the associated variant.
215 * variant_option_values:
216 * type: object
217 * description: The option values of the associated variant, where the key is the option name and the value is the option value.
218 * requires_shipping:
219 * type: boolean
220 * title: requires_shipping
221 * description: Whether the associated variant requires shipping.
222 * is_discountable:
223 * type: boolean
224 * title: is_discountable
225 * description: Whether the associated variant is discountable.
226 * is_tax_inclusive:
227 * type: boolean
228 * title: is_tax_inclusive
229 * description: Whether the associated variant's price includes taxes.
230 * compare_at_unit_price:
231 * type: number
232 * title: The original price of the item before a promotion or sale.
233 * description: The item's compare at unit price.
234 * unit_price:
235 * type: number
236 * title: unit_price
237 * description: The price of a single quantity of the item.
238 * quantity:
239 * type: number
240 * title: quantity
241 * description: The item's quantity.
242 * product_type_id:
243 * type: string
244 * title: product_type_id
245 * description: The ID of the associated product's type.
246 *
247 */
248