@medusajs/types 1.12.0-snapshot-20240516091433 → 1.12.0-snapshot-20240520151134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. package/dist/cart/common.d.ts +0 -107
  2. package/dist/cart/common.d.ts.map +1 -1
  3. package/dist/common/common.d.ts +0 -160
  4. package/dist/common/common.d.ts.map +1 -1
  5. package/dist/common/config-module.d.ts +267 -186
  6. package/dist/common/config-module.d.ts.map +1 -1
  7. package/dist/common/index.d.ts +1 -0
  8. package/dist/common/index.d.ts.map +1 -1
  9. package/dist/common/index.js +1 -0
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/common/with-calculated.d.ts +6 -0
  12. package/dist/common/with-calculated.d.ts.map +1 -0
  13. package/dist/{http/common/deleted-response.js → common/with-calculated.js} +1 -1
  14. package/dist/common/with-calculated.js.map +1 -0
  15. package/dist/fulfillment/mutations/shipping-option.d.ts +12 -0
  16. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  17. package/dist/http/api-key/admin/api-key.d.ts +3 -12
  18. package/dist/http/api-key/admin/api-key.d.ts.map +1 -1
  19. package/dist/http/campaign/admin/campaign.d.ts +2 -11
  20. package/dist/http/campaign/admin/campaign.d.ts.map +1 -1
  21. package/dist/http/cart/common.d.ts +636 -0
  22. package/dist/http/cart/common.d.ts.map +1 -0
  23. package/dist/http/{common/paginated-response.js → cart/common.js} +1 -1
  24. package/dist/http/cart/common.js.map +1 -0
  25. package/dist/http/cart/index.d.ts +2 -0
  26. package/dist/http/cart/index.d.ts.map +1 -0
  27. package/dist/http/cart/index.js +18 -0
  28. package/dist/http/cart/index.js.map +1 -0
  29. package/dist/http/cart/store.d.ts +45 -0
  30. package/dist/http/cart/store.d.ts.map +1 -0
  31. package/dist/http/{order/admin/index.js → cart/store.js} +1 -1
  32. package/dist/http/cart/store.js.map +1 -0
  33. package/dist/http/collection/admin.d.ts +6 -0
  34. package/dist/http/collection/admin.d.ts.map +1 -0
  35. package/dist/http/collection/admin.js +3 -0
  36. package/dist/http/collection/admin.js.map +1 -0
  37. package/dist/http/collection/common.d.ts +19 -0
  38. package/dist/http/collection/common.d.ts.map +1 -0
  39. package/dist/http/collection/common.js +3 -0
  40. package/dist/http/collection/common.js.map +1 -0
  41. package/dist/http/collection/index.d.ts +3 -0
  42. package/dist/http/collection/index.d.ts.map +1 -0
  43. package/dist/http/collection/index.js +19 -0
  44. package/dist/http/collection/index.js.map +1 -0
  45. package/dist/http/collection/store.d.ts +6 -0
  46. package/dist/http/collection/store.d.ts.map +1 -0
  47. package/dist/http/collection/store.js +3 -0
  48. package/dist/http/collection/store.js.map +1 -0
  49. package/dist/http/common/index.d.ts +2 -2
  50. package/dist/http/common/index.d.ts.map +1 -1
  51. package/dist/http/common/index.js +2 -2
  52. package/dist/http/common/index.js.map +1 -1
  53. package/dist/http/common/request.d.ts +9 -0
  54. package/dist/http/common/request.d.ts.map +1 -0
  55. package/dist/http/common/request.js +3 -0
  56. package/dist/http/common/request.js.map +1 -0
  57. package/dist/http/common/response.d.ts +24 -0
  58. package/dist/http/common/response.d.ts.map +1 -0
  59. package/dist/http/common/response.js +3 -0
  60. package/dist/http/common/response.js.map +1 -0
  61. package/dist/http/customer/admin/customer.d.ts +5 -26
  62. package/dist/http/customer/admin/customer.d.ts.map +1 -1
  63. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +0 -3
  64. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -1
  65. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +0 -3
  66. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -1
  67. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +0 -3
  68. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -1
  69. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +0 -3
  70. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -1
  71. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +0 -6
  72. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -1
  73. package/dist/http/fulfillment/admin/fulfillment.d.ts +1 -7
  74. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -1
  75. package/dist/http/fulfillment/admin/geo-zone.d.ts +0 -3
  76. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -1
  77. package/dist/http/fulfillment/admin/service-zone.d.ts +0 -9
  78. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -1
  79. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +0 -3
  80. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -1
  81. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +0 -3
  82. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -1
  83. package/dist/http/fulfillment/admin/shipping-option.d.ts +2 -14
  84. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  85. package/dist/http/fulfillment/admin/shipping-profile.d.ts +3 -9
  86. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -1
  87. package/dist/http/index.d.ts +6 -0
  88. package/dist/http/index.d.ts.map +1 -1
  89. package/dist/http/index.js +6 -0
  90. package/dist/http/index.js.map +1 -1
  91. package/dist/http/inventory/inventory-level.d.ts +2 -8
  92. package/dist/http/inventory/inventory-level.d.ts.map +1 -1
  93. package/dist/http/inventory/inventory.d.ts +2 -8
  94. package/dist/http/inventory/inventory.d.ts.map +1 -1
  95. package/dist/http/order/admin.d.ts +4 -0
  96. package/dist/http/order/admin.d.ts.map +1 -0
  97. package/dist/http/order/admin.js +3 -0
  98. package/dist/http/order/admin.js.map +1 -0
  99. package/dist/http/order/{admin/index.d.ts → common.d.ts} +30 -96
  100. package/dist/http/order/common.d.ts.map +1 -0
  101. package/dist/http/order/common.js +3 -0
  102. package/dist/http/order/common.js.map +1 -0
  103. package/dist/http/order/index.d.ts +1 -0
  104. package/dist/http/order/index.d.ts.map +1 -1
  105. package/dist/http/order/index.js +1 -0
  106. package/dist/http/order/index.js.map +1 -1
  107. package/dist/http/order/store.d.ts +4 -0
  108. package/dist/http/order/store.d.ts.map +1 -0
  109. package/dist/http/order/store.js +3 -0
  110. package/dist/http/order/store.js.map +1 -0
  111. package/dist/http/payment/admin.d.ts +16 -0
  112. package/dist/http/payment/admin.d.ts.map +1 -0
  113. package/dist/http/payment/admin.js +3 -0
  114. package/dist/http/payment/admin.js.map +1 -0
  115. package/dist/http/payment/common.d.ts +339 -0
  116. package/dist/http/payment/common.d.ts.map +1 -0
  117. package/dist/http/payment/common.js +3 -0
  118. package/dist/http/payment/common.js.map +1 -0
  119. package/dist/http/payment/index.d.ts +3 -0
  120. package/dist/http/payment/index.d.ts.map +1 -0
  121. package/dist/http/payment/index.js +19 -0
  122. package/dist/http/payment/index.js.map +1 -0
  123. package/dist/http/payment/store.d.ts +14 -0
  124. package/dist/http/payment/store.d.ts.map +1 -0
  125. package/dist/http/payment/store.js +3 -0
  126. package/dist/http/payment/store.js.map +1 -0
  127. package/dist/http/product/admin.d.ts +33 -0
  128. package/dist/http/product/admin.d.ts.map +1 -0
  129. package/dist/http/product/admin.js +3 -0
  130. package/dist/http/product/admin.js.map +1 -0
  131. package/dist/http/product/common.d.ts +176 -0
  132. package/dist/http/product/common.d.ts.map +1 -0
  133. package/dist/http/product/common.js +3 -0
  134. package/dist/http/product/common.js.map +1 -0
  135. package/dist/http/product/index.d.ts +3 -0
  136. package/dist/http/product/index.d.ts.map +1 -0
  137. package/dist/http/product/index.js +19 -0
  138. package/dist/http/product/index.js.map +1 -0
  139. package/dist/http/product/store.d.ts +30 -0
  140. package/dist/http/product/store.d.ts.map +1 -0
  141. package/dist/http/product/store.js +3 -0
  142. package/dist/http/product/store.js.map +1 -0
  143. package/dist/http/product-category/admin.d.ts +3 -9
  144. package/dist/http/product-category/admin.d.ts.map +1 -1
  145. package/dist/http/product-category/common.d.ts +0 -3
  146. package/dist/http/product-category/common.d.ts.map +1 -1
  147. package/dist/http/product-category/store.d.ts +3 -9
  148. package/dist/http/product-category/store.d.ts.map +1 -1
  149. package/dist/http/promotion/admin/promotion-rule.d.ts +0 -6
  150. package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -1
  151. package/dist/http/promotion/admin/rule-attribute-options.d.ts +0 -6
  152. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
  153. package/dist/http/promotion/admin/rule-operator-options.d.ts +0 -6
  154. package/dist/http/promotion/admin/rule-operator-options.d.ts.map +1 -1
  155. package/dist/http/region/admin.d.ts +26 -0
  156. package/dist/http/region/admin.d.ts.map +1 -0
  157. package/dist/http/region/admin.js +3 -0
  158. package/dist/http/region/admin.js.map +1 -0
  159. package/dist/http/region/common.d.ts +39 -0
  160. package/dist/http/region/common.d.ts.map +1 -0
  161. package/dist/http/region/common.js +3 -0
  162. package/dist/http/region/common.js.map +1 -0
  163. package/dist/http/region/index.d.ts +3 -0
  164. package/dist/http/region/index.d.ts.map +1 -0
  165. package/dist/http/region/index.js +19 -0
  166. package/dist/http/region/index.js.map +1 -0
  167. package/dist/http/region/store.d.ts +10 -0
  168. package/dist/http/region/store.d.ts.map +1 -0
  169. package/dist/http/region/store.js +3 -0
  170. package/dist/http/region/store.js.map +1 -0
  171. package/dist/http/reservation/admin/reservation.d.ts +3 -12
  172. package/dist/http/reservation/admin/reservation.d.ts.map +1 -1
  173. package/dist/http/sales-channel/admin/sales-channel.d.ts +2 -11
  174. package/dist/http/sales-channel/admin/sales-channel.d.ts.map +1 -1
  175. package/dist/http/tax/admin/tax-rates.d.ts +3 -12
  176. package/dist/http/tax/admin/tax-rates.d.ts.map +1 -1
  177. package/dist/http/tax/admin/tax-regions.d.ts +3 -12
  178. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -1
  179. package/dist/order/common.d.ts +8 -1
  180. package/dist/order/common.d.ts.map +1 -1
  181. package/dist/order/mutations.d.ts +2 -2
  182. package/dist/order/mutations.d.ts.map +1 -1
  183. package/dist/order/service.d.ts +4 -0
  184. package/dist/order/service.d.ts.map +1 -1
  185. package/dist/workflow/fulfillment/create-fulfillment.d.ts +1 -0
  186. package/dist/workflow/fulfillment/create-fulfillment.d.ts.map +1 -1
  187. package/dist/workflow/index.d.ts +1 -0
  188. package/dist/workflow/index.d.ts.map +1 -1
  189. package/dist/workflow/index.js +2 -1
  190. package/dist/workflow/index.js.map +1 -1
  191. package/dist/workflow/order/create-return-order.d.ts +26 -0
  192. package/dist/workflow/order/create-return-order.d.ts.map +1 -0
  193. package/dist/workflow/order/create-return-order.js +3 -0
  194. package/dist/workflow/order/create-return-order.js.map +1 -0
  195. package/dist/workflow/order/index.d.ts +2 -0
  196. package/dist/workflow/order/index.d.ts.map +1 -0
  197. package/dist/workflow/order/index.js +18 -0
  198. package/dist/workflow/order/index.js.map +1 -0
  199. package/package.json +1 -1
  200. package/dist/http/common/deleted-response.d.ts +0 -18
  201. package/dist/http/common/deleted-response.d.ts.map +0 -1
  202. package/dist/http/common/deleted-response.js.map +0 -1
  203. package/dist/http/common/paginated-response.d.ts +0 -6
  204. package/dist/http/common/paginated-response.d.ts.map +0 -1
  205. package/dist/http/common/paginated-response.js.map +0 -1
  206. package/dist/http/order/admin/index.d.ts.map +0 -1
  207. package/dist/http/order/admin/index.js.map +0 -1
@@ -0,0 +1,636 @@
1
+ import { BigNumberValue } from "../../totals";
2
+ export interface BaseCart {
3
+ /**
4
+ * The ID of the cart.
5
+ */
6
+ id: string;
7
+ /**
8
+ * The ID of the region the cart belongs to.
9
+ */
10
+ region_id?: string;
11
+ /**
12
+ * The ID of the associated customer
13
+ */
14
+ customer_id?: string;
15
+ /**
16
+ * The ID of the sales channel the cart belongs to.
17
+ */
18
+ sales_channel_id?: string;
19
+ /**
20
+ * The email of the customer that owns the cart.
21
+ */
22
+ email?: string;
23
+ /**
24
+ * The currency of the cart
25
+ */
26
+ currency_code: string;
27
+ /**
28
+ * The associated shipping address.
29
+ *
30
+ * @expandable
31
+ */
32
+ shipping_address?: BaseCartAddress;
33
+ /**
34
+ * The associated billing address.
35
+ *
36
+ * @expandable
37
+ */
38
+ billing_address?: BaseCartAddress;
39
+ /**
40
+ * The associated line items.
41
+ *
42
+ * @expandable
43
+ */
44
+ items?: BaseCartLineItem[];
45
+ /**
46
+ * The associated shipping methods
47
+ *
48
+ * @expandable
49
+ */
50
+ shipping_methods?: BaseCartShippingMethod[];
51
+ /**
52
+ * Holds custom data in key-value pairs.
53
+ */
54
+ metadata?: Record<string, unknown> | null;
55
+ /**
56
+ * When the cart was created.
57
+ */
58
+ created_at?: string | Date;
59
+ /**
60
+ * When the cart was updated.
61
+ */
62
+ updated_at?: string | Date;
63
+ /**
64
+ * The original item total of the cart.
65
+ */
66
+ original_item_total: BigNumberValue;
67
+ /**
68
+ * The original item subtotal of the cart.
69
+ */
70
+ original_item_subtotal: BigNumberValue;
71
+ /**
72
+ * The original item tax total of the cart.
73
+ */
74
+ original_item_tax_total: BigNumberValue;
75
+ /**
76
+ * The item total of the cart.
77
+ */
78
+ item_total: BigNumberValue;
79
+ /**
80
+ * The item subtotal of the cart.
81
+ */
82
+ item_subtotal: BigNumberValue;
83
+ /**
84
+ * The item tax total of the cart.
85
+ */
86
+ item_tax_total: BigNumberValue;
87
+ /**
88
+ * The original total of the cart.
89
+ */
90
+ original_total: BigNumberValue;
91
+ /**
92
+ * The original subtotal of the cart.
93
+ */
94
+ original_subtotal: BigNumberValue;
95
+ /**
96
+ * The original tax total of the cart.
97
+ */
98
+ original_tax_total: BigNumberValue;
99
+ /**
100
+ * The total of the cart.
101
+ */
102
+ total: BigNumberValue;
103
+ /**
104
+ * The subtotal of the cart. (Excluding taxes)
105
+ */
106
+ subtotal: BigNumberValue;
107
+ /**
108
+ * The tax total of the cart.
109
+ */
110
+ tax_total: BigNumberValue;
111
+ /**
112
+ * The discount total of the cart.
113
+ */
114
+ discount_total: BigNumberValue;
115
+ /**
116
+ * The discount tax total of the cart.
117
+ */
118
+ discount_tax_total: BigNumberValue;
119
+ /**
120
+ * The gift card total of the cart.
121
+ */
122
+ gift_card_total: BigNumberValue;
123
+ /**
124
+ * The gift card tax total of the cart.
125
+ */
126
+ gift_card_tax_total: BigNumberValue;
127
+ /**
128
+ * The shipping total of the cart.
129
+ */
130
+ shipping_total: BigNumberValue;
131
+ /**
132
+ * The shipping subtotal of the cart.
133
+ */
134
+ shipping_subtotal: BigNumberValue;
135
+ /**
136
+ * The shipping tax total of the cart.
137
+ */
138
+ shipping_tax_total: BigNumberValue;
139
+ /**
140
+ * The original shipping total of the cart.
141
+ */
142
+ original_shipping_total: BigNumberValue;
143
+ /**
144
+ * The original shipping subtotal of the cart.
145
+ */
146
+ original_shipping_subtotal: BigNumberValue;
147
+ /**
148
+ * The original shipping tax total of the cart.
149
+ */
150
+ original_shipping_tax_total: BigNumberValue;
151
+ }
152
+ export interface BaseCartAddress {
153
+ /**
154
+ * The ID of the address.
155
+ */
156
+ id: string;
157
+ /**
158
+ * The customer ID of the address.
159
+ */
160
+ customer_id?: string;
161
+ /**
162
+ * The first name of the address.
163
+ */
164
+ first_name?: string;
165
+ /**
166
+ * The last name of the address.
167
+ */
168
+ last_name?: string;
169
+ /**
170
+ * The phone number of the address.
171
+ */
172
+ phone?: string;
173
+ /**
174
+ * The company of the address.
175
+ */
176
+ company?: string;
177
+ /**
178
+ * The first address line of the address.
179
+ */
180
+ address_1?: string;
181
+ /**
182
+ * The second address line of the address.
183
+ */
184
+ address_2?: string;
185
+ /**
186
+ * The city of the address.
187
+ */
188
+ city?: string;
189
+ /**
190
+ * The country code of the address.
191
+ */
192
+ country_code?: string;
193
+ /**
194
+ * The province/state of the address.
195
+ */
196
+ province?: string;
197
+ /**
198
+ * The postal code of the address.
199
+ */
200
+ postal_code?: string;
201
+ /**
202
+ * Holds custom data in key-value pairs.
203
+ */
204
+ metadata?: Record<string, unknown> | null;
205
+ /**
206
+ * When the address was created.
207
+ */
208
+ created_at: Date | string;
209
+ /**
210
+ * When the address was updated.
211
+ */
212
+ updated_at: Date | string;
213
+ }
214
+ /**
215
+ * The cart shipping method details.
216
+ */
217
+ export interface BaseCartShippingMethod {
218
+ /**
219
+ * The ID of the shipping method.
220
+ */
221
+ id: string;
222
+ /**
223
+ * The ID of the associated cart.
224
+ */
225
+ cart_id: string;
226
+ /**
227
+ * The name of the shipping method.
228
+ */
229
+ name: string;
230
+ /**
231
+ * The description of the shipping method.
232
+ */
233
+ description?: string;
234
+ /**
235
+ * The price of the shipping method.
236
+ */
237
+ amount: BigNumberValue;
238
+ /**
239
+ * Whether the shipping method price is tax inclusive.
240
+ */
241
+ is_tax_inclusive: boolean;
242
+ /**
243
+ * The ID of the shipping option the method was created from.
244
+ */
245
+ shipping_option_id?: string;
246
+ /**
247
+ * Additional data needed for fulfillment.
248
+ */
249
+ data?: Record<string, unknown>;
250
+ /**
251
+ * Holds custom data in key-value pairs.
252
+ */
253
+ metadata?: Record<string, unknown> | null;
254
+ /**
255
+ * The associated tax lines.
256
+ *
257
+ * @expandable
258
+ */
259
+ tax_lines?: BaseShippingMethodTaxLine[];
260
+ /**
261
+ * The associated adjustments.
262
+ *
263
+ * @expandable
264
+ */
265
+ adjustments?: BaseShippingMethodAdjustment[];
266
+ /**
267
+ * When the shipping method was created.
268
+ */
269
+ created_at: Date | string;
270
+ /**
271
+ * When the shipping method was updated.
272
+ */
273
+ updated_at: Date | string;
274
+ /**
275
+ * The original total of the cart shipping method.
276
+ */
277
+ original_total: BigNumberValue;
278
+ /**
279
+ * The original subtotal of the cart shipping method.
280
+ */
281
+ original_subtotal: BigNumberValue;
282
+ /**
283
+ * The original tax total of the cart shipping method.
284
+ */
285
+ original_tax_total: BigNumberValue;
286
+ /**
287
+ * The total of the cart shipping method.
288
+ */
289
+ total: BigNumberValue;
290
+ /**
291
+ * The subtotal of the cart shipping method.
292
+ */
293
+ subtotal: BigNumberValue;
294
+ /**
295
+ * The tax total of the cart shipping method.
296
+ */
297
+ tax_total: BigNumberValue;
298
+ /**
299
+ * The discount total of the cart shipping method.
300
+ */
301
+ discount_total: BigNumberValue;
302
+ /**
303
+ * The discount tax total of the cart shipping method.
304
+ */
305
+ discount_tax_total: BigNumberValue;
306
+ }
307
+ /**
308
+ * The cart line item details.
309
+ */
310
+ export interface BaseCartLineItem extends BaseCartLineItemTotals {
311
+ /**
312
+ * The ID of the line item.
313
+ */
314
+ id: string;
315
+ /**
316
+ * The title of the line item.
317
+ */
318
+ title: string;
319
+ /**
320
+ * The subtitle of the line item.
321
+ */
322
+ subtitle?: string;
323
+ /**
324
+ * The line item's thumbnail.
325
+ */
326
+ thumbnail?: string;
327
+ /**
328
+ * The line item's quantity in the cart.
329
+ */
330
+ quantity: BigNumberValue;
331
+ /**
332
+ * The ID of the associated product.
333
+ */
334
+ product_id?: string;
335
+ /**
336
+ * The title of the associated product.
337
+ */
338
+ product_title?: string;
339
+ /**
340
+ * The description of the associated product.
341
+ */
342
+ product_description?: string;
343
+ /**
344
+ * The subtitle of the associated product.
345
+ */
346
+ product_subtitle?: string;
347
+ /**
348
+ * The type of the associated product.
349
+ */
350
+ product_type?: string;
351
+ /**
352
+ * The collection of the associated product.
353
+ */
354
+ product_collection?: string;
355
+ /**
356
+ * The handle of the associated product.
357
+ */
358
+ product_handle?: string;
359
+ /**
360
+ * The associated variant's ID of the line item.
361
+ */
362
+ variant_id?: string;
363
+ /**
364
+ * The sku of the associated variant.
365
+ */
366
+ variant_sku?: string;
367
+ /**
368
+ * The barcode of the associated variant.
369
+ */
370
+ variant_barcode?: string;
371
+ /**
372
+ * The title of the associated variant.
373
+ */
374
+ variant_title?: string;
375
+ /**
376
+ * The option values of the associated variant.
377
+ */
378
+ variant_option_values?: Record<string, unknown>;
379
+ /**
380
+ * Whether the line item requires shipping.
381
+ */
382
+ requires_shipping: boolean;
383
+ /**
384
+ * Whether the line item is discountable.
385
+ */
386
+ is_discountable: boolean;
387
+ /**
388
+ * Whether the line item price is tax inclusive.
389
+ */
390
+ is_tax_inclusive: boolean;
391
+ /**
392
+ * The calculated price of the line item.
393
+ */
394
+ compare_at_unit_price?: BigNumberValue;
395
+ /**
396
+ * The unit price of the item.
397
+ */
398
+ unit_price: BigNumberValue;
399
+ /**
400
+ * The associated tax lines.
401
+ *
402
+ * @expandable
403
+ */
404
+ tax_lines?: BaseLineItemTaxLine[];
405
+ /**
406
+ * The associated adjustments.
407
+ *
408
+ * @expandable
409
+ */
410
+ adjustments?: BaseLineItemAdjustment[];
411
+ /**
412
+ * The associated cart.
413
+ *
414
+ * @expandable
415
+ */
416
+ cart: BaseCart;
417
+ /**
418
+ * The ID of the associated cart.
419
+ */
420
+ cart_id: string;
421
+ /**
422
+ * Holds custom data in key-value pairs.
423
+ */
424
+ metadata?: Record<string, unknown> | null;
425
+ /**
426
+ * When the line item was created.
427
+ */
428
+ created_at?: Date;
429
+ /**
430
+ * When the line item was updated.
431
+ */
432
+ updated_at?: Date;
433
+ /**
434
+ * When the line item was deleted.
435
+ */
436
+ deleted_at?: Date;
437
+ }
438
+ /**
439
+ * The cart line item totals details.
440
+ */
441
+ export interface BaseCartLineItemTotals {
442
+ /**
443
+ * The original total of the cart line item.
444
+ */
445
+ original_total: BigNumberValue;
446
+ /**
447
+ * The original subtotal of the cart line item.
448
+ */
449
+ original_subtotal: BigNumberValue;
450
+ /**
451
+ * The original tax total of the cart line item.
452
+ */
453
+ original_tax_total: BigNumberValue;
454
+ /**
455
+ * The item total of the cart line item.
456
+ */
457
+ item_total: BigNumberValue;
458
+ /**
459
+ * The item subtotal of the cart line item.
460
+ */
461
+ item_subtotal: BigNumberValue;
462
+ /**
463
+ * The item tax total of the cart line item.
464
+ */
465
+ item_tax_total: BigNumberValue;
466
+ /**
467
+ * The total of the cart line item.
468
+ */
469
+ total: BigNumberValue;
470
+ /**
471
+ * The subtotal of the cart line item.
472
+ */
473
+ subtotal: BigNumberValue;
474
+ /**
475
+ * The tax total of the cart line item.
476
+ */
477
+ tax_total: BigNumberValue;
478
+ /**
479
+ * The discount total of the cart line item.
480
+ */
481
+ discount_total: BigNumberValue;
482
+ /**
483
+ * The discount tax total of the cart line item.
484
+ */
485
+ discount_tax_total: BigNumberValue;
486
+ }
487
+ /**
488
+ * The adjustment line details.
489
+ */
490
+ export interface BaseAdjustmentLine {
491
+ /**
492
+ * The ID of the adjustment line
493
+ */
494
+ id: string;
495
+ /**
496
+ * The code of the promotion that lead to
497
+ * this adjustment.
498
+ */
499
+ code?: string;
500
+ /**
501
+ * The amount to adjust the original amount with.
502
+ */
503
+ amount: BigNumberValue;
504
+ /**
505
+ * The ID of the associated cart.
506
+ */
507
+ cart_id: string;
508
+ /**
509
+ * The description of the adjustment line.
510
+ */
511
+ description?: string;
512
+ /**
513
+ * The ID of the associated promotion.
514
+ */
515
+ promotion_id?: string;
516
+ /**
517
+ * The ID of the associated provider.
518
+ */
519
+ provider_id?: string;
520
+ /**
521
+ * When the adjustment line was created.
522
+ */
523
+ created_at: Date | string;
524
+ /**
525
+ * When the adjustment line was updated.
526
+ */
527
+ updated_at: Date | string;
528
+ }
529
+ /**
530
+ * The shipping method adjustment details.
531
+ */
532
+ export interface BaseShippingMethodAdjustment extends BaseAdjustmentLine {
533
+ /**
534
+ * The associated shipping method.
535
+ */
536
+ shipping_method: BaseCartShippingMethod;
537
+ /**
538
+ * The ID of the associated shipping method.
539
+ */
540
+ shipping_method_id: string;
541
+ }
542
+ /**
543
+ * The line item adjustment details.
544
+ */
545
+ export interface BaseLineItemAdjustment extends BaseAdjustmentLine {
546
+ /**
547
+ * The associated line item.
548
+ *
549
+ * @expandable
550
+ */
551
+ item: BaseCartLineItem;
552
+ /**
553
+ * The ID of the associated line item.
554
+ */
555
+ item_id: string;
556
+ }
557
+ /**
558
+ * The tax line details.
559
+ */
560
+ export interface BaseTaxLine {
561
+ /**
562
+ * The ID of the tax line
563
+ */
564
+ id: string;
565
+ /**
566
+ * The description of the tax line
567
+ */
568
+ description?: string;
569
+ /**
570
+ * The ID of the associated tax rate.
571
+ */
572
+ tax_rate_id?: string;
573
+ /**
574
+ * The code of the tax line.
575
+ */
576
+ code: string;
577
+ /**
578
+ * The rate of the tax line.
579
+ */
580
+ rate: number;
581
+ /**
582
+ * The ID of the associated provider.
583
+ */
584
+ provider_id?: string;
585
+ /**
586
+ * When the tax line was created.
587
+ */
588
+ created_at: Date | string;
589
+ /**
590
+ * When the tax line was updated.
591
+ */
592
+ updated_at: Date | string;
593
+ }
594
+ /**
595
+ * The shipping method tax line details.
596
+ */
597
+ export interface BaseShippingMethodTaxLine extends BaseTaxLine {
598
+ /**
599
+ * The associated shipping method.
600
+ */
601
+ shipping_method: BaseCartShippingMethod;
602
+ /**
603
+ * The ID of the associated shipping method.
604
+ */
605
+ shipping_method_id: string;
606
+ /**
607
+ * The total tax relative to the shipping method.
608
+ */
609
+ total: BigNumberValue;
610
+ /**
611
+ * The subtotal tax relative to the shipping method.
612
+ */
613
+ subtotal: BigNumberValue;
614
+ }
615
+ /**
616
+ * The line item tax line details.
617
+ */
618
+ export interface BaseLineItemTaxLine extends BaseTaxLine {
619
+ /**
620
+ * The associated line item.
621
+ */
622
+ item: BaseCartLineItem;
623
+ /**
624
+ * The ID of the associated line item.
625
+ */
626
+ item_id: string;
627
+ /**
628
+ * The total tax relative to the item.
629
+ */
630
+ total: BigNumberValue;
631
+ /**
632
+ * The subtotal tax relative to the item.
633
+ */
634
+ subtotal: BigNumberValue;
635
+ }
636
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/cart/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,aAAa,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AAkB;IAChE;;;;OAIG;IACH,IAAI,EAAE,gBAAgB,CAAA;IAEtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D;;OAEG;IACH,eAAe,EAAE,sBAAsB,CAAA;IAEvC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAA;IAErB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAA;IAEtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,EAAE,cAAc,CAAA;IAErB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAA;CACzB"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=paginated-response.js.map
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/cart/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./store";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/cart/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./store"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/cart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}