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