@medusajs/types 1.12.0-preview-20240520180532 → 1.12.0-preview-20240520210446
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cart/common.d.ts +0 -107
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/http/cart/common.d.ts +636 -0
- package/dist/http/cart/common.d.ts.map +1 -0
- package/dist/http/cart/common.js +3 -0
- package/dist/http/cart/common.js.map +1 -0
- package/dist/http/cart/index.d.ts +2 -0
- package/dist/http/cart/index.d.ts.map +1 -0
- package/dist/http/cart/index.js +18 -0
- package/dist/http/cart/index.js.map +1 -0
- package/dist/http/cart/store.d.ts +45 -0
- package/dist/http/cart/store.d.ts.map +1 -0
- package/dist/http/{order/admin/index.js → cart/store.js} +1 -1
- package/dist/http/cart/store.js.map +1 -0
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +1 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/order/admin.d.ts +4 -0
- package/dist/http/order/admin.d.ts.map +1 -0
- package/dist/http/order/admin.js +3 -0
- package/dist/http/order/admin.js.map +1 -0
- package/dist/http/order/{admin/index.d.ts → common.d.ts} +33 -87
- package/dist/http/order/common.d.ts.map +1 -0
- package/dist/http/order/common.js +3 -0
- package/dist/http/order/common.js.map +1 -0
- package/dist/http/order/index.d.ts +1 -0
- package/dist/http/order/index.d.ts.map +1 -1
- package/dist/http/order/index.js +1 -0
- package/dist/http/order/index.js.map +1 -1
- package/dist/http/order/store.d.ts +4 -0
- package/dist/http/order/store.d.ts.map +1 -0
- package/dist/http/order/store.js +3 -0
- package/dist/http/order/store.js.map +1 -0
- package/dist/http/payment/admin.d.ts +12 -1
- package/dist/http/payment/admin.d.ts.map +1 -1
- package/dist/http/payment/common.d.ts +335 -0
- package/dist/http/payment/common.d.ts.map +1 -1
- package/dist/http/payment/store.d.ts +11 -1
- package/dist/http/payment/store.d.ts.map +1 -1
- package/dist/http/product/store.d.ts +5 -2
- package/dist/http/product/store.d.ts.map +1 -1
- package/dist/order/common.d.ts +2 -4
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +1 -1
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +5 -9
- package/dist/order/service.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/http/order/admin/index.d.ts.map +0 -1
- 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;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Q,EAAE,cAAc,CAAA;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/cart/common.ts"],"names":[],"mappings":""}
|
@@ -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"}
|