1 /**
2 * @schema BaseCartLineItem
3 * type: object
4 * description: The tax line's item.
5 * x-schemaName: BaseCartLineItem
6 * required:
7 * - id
8 * - title
9 * - quantity
10 * - requires_shipping
11 * - is_discountable
12 * - is_tax_inclusive
13 * - unit_price
14 * - cart
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.
33 * quantity:
34 * type: number
35 * title: quantity
36 * description: The item's quantity.
37 * product:
38 * $ref: "#/components/schemas/BaseProduct"
39 * product_id:
40 * type: string
41 * title: product_id
42 * description: The item's product id.
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 item's product type.
59 * product_collection:
60 * type: string
61 * title: product_collection
62 * description: The item's product collection.
63 * product_handle:
64 * type: string
65 * title: product_handle
66 * description: The item's product handle.
67 * variant:
68 * $ref: "#/components/schemas/BaseProductVariant"
69 * variant_id:
70 * type: string
71 * title: variant_id
72 * description: The item's variant id.
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 item's variant option values.
88 * requires_shipping:
89 * type: boolean
90 * title: requires_shipping
91 * description: The item's requires shipping.
92 * is_discountable:
93 * type: boolean
94 * title: is_discountable
95 * description: The item's is discountable.
96 * is_tax_inclusive:
97 * type: boolean
98 * title: is_tax_inclusive
99 * description: The item's is tax inclusive.
100 * compare_at_unit_price:
101 * type: number
102 * title: compare_at_unit_price
103 * description: The item's compare at unit price.
104 * unit_price:
105 * type: number
106 * title: unit_price
107 * description: The item's unit price.
108 * tax_lines:
109 * type: array
110 * description: The item's tax lines.
111 * items:
112 * $ref: "#/components/schemas/BaseLineItemTaxLine"
113 * adjustments:
114 * type: array
115 * description: The item's adjustments.
116 * items:
117 * $ref: "#/components/schemas/BaseLineItemAdjustment"
118 * cart:
119 * $ref: "#/components/schemas/BaseCart"
120 * cart_id:
121 * type: string
122 * title: cart_id
123 * description: The item's cart id.
124 * metadata:
125 * type: object
126 * description: The item's metadata.
127 * externalDocs:
128 * url: https://docs.medusajs.com/api/store#manage-metadata
129 * description: Learn how to manage metadata
130 * created_at:
131 * type: string
132 * format: date-time
133 * title: created_at
134 * description: The item's created at.
135 * updated_at:
136 * type: string
137 * format: date-time
138 * title: updated_at
139 * description: The item's updated at.
140 * deleted_at:
141 * type: string
142 * format: date-time
143 * title: deleted_at
144 * description: The item's deleted at.
145 * original_total:
146 * type: number
147 * title: original_total
148 * description: The line item's original total before discounts, including taxes.
149 * original_subtotal:
150 * type: number
151 * title: original_subtotal
152 * description: The line item's original subtotal before discounts, excluding taxes.
153 * original_tax_total:
154 * type: number
155 * title: original_tax_total
156 * description: The line item's original tax total before discounts.
157 * item_total:
158 * type: number
159 * title: item_total
160 * description: The line item's total after discounts, including taxes.
161 * item_subtotal:
162 * type: number
163 * title: item_subtotal
164 * description: The line item's subtotal before discounts, excluding taxes.
165 * item_tax_total:
166 * type: number
167 * title: item_tax_total
168 * description: The line item's tax total after discounts.
169 * total:
170 * type: number
171 * title: total
172 * description: The line item's total after discounts, including taxes.
173 * subtotal:
174 * type: number
175 * title: subtotal
176 * description: The line item's subtotal before discounts, excluding taxes.
177 * tax_total:
178 * type: number
179 * title: tax_total
180 * description: The line item's tax total after discounts.
181 * discount_total:
182 * type: number
183 * title: discount_total
184 * description: The total amount of discounts applied to the line item, including the tax portion of discounts.
185 * discount_tax_total:
186 * type: number
187 * title: discount_tax_total
188 * description: The total amount of discounts applied to the line item's tax. Represents the tax portion of discounts.
189 *
190 */
191