|
1
|
/** |
|
2
|
* @schema AdminOrderLineItem |
|
3
|
* type: object |
|
4
|
* description: The item's details. |
|
5
|
* x-schemaName: AdminOrderLineItem |
|
6
|
* required: |
|
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
|
* 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/AdminProductVariant" |
|
65
|
* variant_id: |
|
66
|
* type: string |
|
67
|
* title: variant_id |
|
68
|
* description: The ID of the associated variant. |
|
69
|
* product: |
|
70
|
* $ref: "#/components/schemas/AdminProduct" |
|
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/admin#manage-metadata |
|
167
|
* description: Learn how to manage metadata |
|
168
|
* original_total: |
|
169
|
* type: number |
|
170
|
* title: original_total |
|
171
|
* description: The item's total including taxes, excluding promotions. |
|
172
|
* original_subtotal: |
|
173
|
* type: number |
|
174
|
* title: original_subtotal |
|
175
|
* description: The item's total excluding taxes, including promotions. |
|
176
|
* original_tax_total: |
|
177
|
* type: number |
|
178
|
* title: original_tax_total |
|
179
|
* description: The total taxes of the item, excluding promotions. |
|
180
|
* item_total: |
|
181
|
* type: number |
|
182
|
* title: item_total |
|
183
|
* description: The total taxes of the item, including promotions. |
|
184
|
* item_subtotal: |
|
185
|
* type: number |
|
186
|
* title: item_subtotal |
|
187
|
* description: The item's total excluding taxes, including promotions. |
|
188
|
* item_tax_total: |
|
189
|
* type: number |
|
190
|
* title: item_tax_total |
|
191
|
* description: The total taxes of the item, including promotions. |
|
192
|
* total: |
|
193
|
* type: number |
|
194
|
* title: total |
|
195
|
* description: The item's total, including taxes and promotions. |
|
196
|
* subtotal: |
|
197
|
* type: number |
|
198
|
* title: subtotal |
|
199
|
* description: The item's subtotal excluding taxes, including promotions. |
|
200
|
* tax_total: |
|
201
|
* type: number |
|
202
|
* title: tax_total |
|
203
|
* description: The tax total of the item including promotions. |
|
204
|
* discount_total: |
|
205
|
* type: number |
|
206
|
* title: discount_total |
|
207
|
* description: The total discount amount of the item. |
|
208
|
* discount_tax_total: |
|
209
|
* type: number |
|
210
|
* title: discount_tax_total |
|
211
|
* description: The total taxes applied on the discounted amount. |
|
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
|
|