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