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