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