@usethrottle/api-client 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/services/ApiKeysService.d.ts +1 -1
- package/dist/generated/services/ApiKeysService.d.ts.map +1 -1
- package/dist/generated/services/AuditService.d.ts +11 -0
- package/dist/generated/services/AuditService.d.ts.map +1 -0
- package/dist/generated/services/AuditService.js +20 -0
- package/dist/generated/services/AuditService.js.map +1 -0
- package/dist/generated/services/BigCommerceService.d.ts +14 -1
- package/dist/generated/services/BigCommerceService.d.ts.map +1 -1
- package/dist/generated/services/BigCommerceService.js +27 -1
- package/dist/generated/services/BigCommerceService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +526 -35
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js +87 -0
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +14 -0
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.js +30 -0
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/ConnectorsService.d.ts +65 -2
- package/dist/generated/services/ConnectorsService.d.ts.map +1 -1
- package/dist/generated/services/ConnectorsService.js +98 -0
- package/dist/generated/services/ConnectorsService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +59 -0
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +126 -0
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +47 -41
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/MerchantService.d.ts +44 -0
- package/dist/generated/services/MerchantService.d.ts.map +1 -0
- package/dist/generated/services/MerchantService.js +66 -0
- package/dist/generated/services/MerchantService.js.map +1 -0
- package/dist/generated/services/PaymentMethodsService.d.ts +3 -1
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +7 -1
- package/dist/generated/services/PaymentMethodsService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +62 -0
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +115 -0
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +35 -4
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +58 -3
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/package.json +12 -9
|
@@ -17,9 +17,9 @@ export declare class CartsService {
|
|
|
17
17
|
}): CancelablePromise<{
|
|
18
18
|
data?: {
|
|
19
19
|
id?: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
merchantId?: string;
|
|
21
|
+
storeId?: string | null;
|
|
22
|
+
customerId?: string | null;
|
|
23
23
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
24
24
|
currency?: string;
|
|
25
25
|
/**
|
|
@@ -29,21 +29,50 @@ export declare class CartsService {
|
|
|
29
29
|
/**
|
|
30
30
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
taxTotal?: number;
|
|
33
33
|
/**
|
|
34
34
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
discountTotal?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
39
|
+
*/
|
|
40
|
+
shippingTotal?: number;
|
|
37
41
|
/**
|
|
38
42
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
39
43
|
*/
|
|
40
44
|
total?: number;
|
|
41
|
-
|
|
45
|
+
discountCode?: string | null;
|
|
46
|
+
selectedShipping?: ({
|
|
47
|
+
methodId?: string;
|
|
48
|
+
displayName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
51
|
+
*/
|
|
52
|
+
rateAmount?: number;
|
|
53
|
+
currency?: string;
|
|
54
|
+
carrier?: string;
|
|
55
|
+
serviceCode?: string;
|
|
56
|
+
estimatedDeliveryDays?: number;
|
|
57
|
+
} | null);
|
|
58
|
+
taxLines?: Array<{
|
|
59
|
+
id?: string;
|
|
60
|
+
lineItemId?: string;
|
|
61
|
+
jurisdictionCode?: string;
|
|
62
|
+
jurisdictionName?: string | null;
|
|
63
|
+
taxType?: string;
|
|
64
|
+
rate?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
67
|
+
*/
|
|
68
|
+
amount?: number;
|
|
69
|
+
currency?: string | null;
|
|
70
|
+
}>;
|
|
42
71
|
/**
|
|
43
72
|
* Arbitrary key-value metadata
|
|
44
73
|
*/
|
|
45
74
|
metadata?: Record<string, any>;
|
|
46
|
-
|
|
75
|
+
createdAt?: string;
|
|
47
76
|
};
|
|
48
77
|
meta?: {
|
|
49
78
|
request_id?: string;
|
|
@@ -62,9 +91,9 @@ export declare class CartsService {
|
|
|
62
91
|
static getApiV1Carts(id: string): CancelablePromise<{
|
|
63
92
|
data?: {
|
|
64
93
|
id?: string;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
94
|
+
merchantId?: string;
|
|
95
|
+
storeId?: string | null;
|
|
96
|
+
customerId?: string | null;
|
|
68
97
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
69
98
|
currency?: string;
|
|
70
99
|
/**
|
|
@@ -74,21 +103,50 @@ export declare class CartsService {
|
|
|
74
103
|
/**
|
|
75
104
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
76
105
|
*/
|
|
77
|
-
|
|
106
|
+
taxTotal?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
109
|
+
*/
|
|
110
|
+
discountTotal?: number;
|
|
78
111
|
/**
|
|
79
112
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
80
113
|
*/
|
|
81
|
-
|
|
114
|
+
shippingTotal?: number;
|
|
82
115
|
/**
|
|
83
116
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
84
117
|
*/
|
|
85
118
|
total?: number;
|
|
86
|
-
|
|
119
|
+
discountCode?: string | null;
|
|
120
|
+
selectedShipping?: ({
|
|
121
|
+
methodId?: string;
|
|
122
|
+
displayName?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
125
|
+
*/
|
|
126
|
+
rateAmount?: number;
|
|
127
|
+
currency?: string;
|
|
128
|
+
carrier?: string;
|
|
129
|
+
serviceCode?: string;
|
|
130
|
+
estimatedDeliveryDays?: number;
|
|
131
|
+
} | null);
|
|
132
|
+
taxLines?: Array<{
|
|
133
|
+
id?: string;
|
|
134
|
+
lineItemId?: string;
|
|
135
|
+
jurisdictionCode?: string;
|
|
136
|
+
jurisdictionName?: string | null;
|
|
137
|
+
taxType?: string;
|
|
138
|
+
rate?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
141
|
+
*/
|
|
142
|
+
amount?: number;
|
|
143
|
+
currency?: string | null;
|
|
144
|
+
}>;
|
|
87
145
|
/**
|
|
88
146
|
* Arbitrary key-value metadata
|
|
89
147
|
*/
|
|
90
148
|
metadata?: Record<string, any>;
|
|
91
|
-
|
|
149
|
+
createdAt?: string;
|
|
92
150
|
};
|
|
93
151
|
meta?: {
|
|
94
152
|
request_id?: string;
|
|
@@ -117,9 +175,9 @@ export declare class CartsService {
|
|
|
117
175
|
}): CancelablePromise<{
|
|
118
176
|
data?: {
|
|
119
177
|
id?: string;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
178
|
+
merchantId?: string;
|
|
179
|
+
storeId?: string | null;
|
|
180
|
+
customerId?: string | null;
|
|
123
181
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
124
182
|
currency?: string;
|
|
125
183
|
/**
|
|
@@ -129,21 +187,50 @@ export declare class CartsService {
|
|
|
129
187
|
/**
|
|
130
188
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
131
189
|
*/
|
|
132
|
-
|
|
190
|
+
taxTotal?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
193
|
+
*/
|
|
194
|
+
discountTotal?: number;
|
|
133
195
|
/**
|
|
134
196
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
135
197
|
*/
|
|
136
|
-
|
|
198
|
+
shippingTotal?: number;
|
|
137
199
|
/**
|
|
138
200
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
139
201
|
*/
|
|
140
202
|
total?: number;
|
|
141
|
-
|
|
203
|
+
discountCode?: string | null;
|
|
204
|
+
selectedShipping?: ({
|
|
205
|
+
methodId?: string;
|
|
206
|
+
displayName?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
209
|
+
*/
|
|
210
|
+
rateAmount?: number;
|
|
211
|
+
currency?: string;
|
|
212
|
+
carrier?: string;
|
|
213
|
+
serviceCode?: string;
|
|
214
|
+
estimatedDeliveryDays?: number;
|
|
215
|
+
} | null);
|
|
216
|
+
taxLines?: Array<{
|
|
217
|
+
id?: string;
|
|
218
|
+
lineItemId?: string;
|
|
219
|
+
jurisdictionCode?: string;
|
|
220
|
+
jurisdictionName?: string | null;
|
|
221
|
+
taxType?: string;
|
|
222
|
+
rate?: number;
|
|
223
|
+
/**
|
|
224
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
225
|
+
*/
|
|
226
|
+
amount?: number;
|
|
227
|
+
currency?: string | null;
|
|
228
|
+
}>;
|
|
142
229
|
/**
|
|
143
230
|
* Arbitrary key-value metadata
|
|
144
231
|
*/
|
|
145
232
|
metadata?: Record<string, any>;
|
|
146
|
-
|
|
233
|
+
createdAt?: string;
|
|
147
234
|
};
|
|
148
235
|
meta?: {
|
|
149
236
|
request_id?: string;
|
|
@@ -305,9 +392,9 @@ export declare class CartsService {
|
|
|
305
392
|
}): CancelablePromise<{
|
|
306
393
|
data?: {
|
|
307
394
|
id?: string;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
395
|
+
merchantId?: string;
|
|
396
|
+
storeId?: string | null;
|
|
397
|
+
customerId?: string | null;
|
|
311
398
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
312
399
|
currency?: string;
|
|
313
400
|
/**
|
|
@@ -317,21 +404,50 @@ export declare class CartsService {
|
|
|
317
404
|
/**
|
|
318
405
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
319
406
|
*/
|
|
320
|
-
|
|
407
|
+
taxTotal?: number;
|
|
321
408
|
/**
|
|
322
409
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
323
410
|
*/
|
|
324
|
-
|
|
411
|
+
discountTotal?: number;
|
|
412
|
+
/**
|
|
413
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
414
|
+
*/
|
|
415
|
+
shippingTotal?: number;
|
|
325
416
|
/**
|
|
326
417
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
327
418
|
*/
|
|
328
419
|
total?: number;
|
|
329
|
-
|
|
420
|
+
discountCode?: string | null;
|
|
421
|
+
selectedShipping?: ({
|
|
422
|
+
methodId?: string;
|
|
423
|
+
displayName?: string;
|
|
424
|
+
/**
|
|
425
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
426
|
+
*/
|
|
427
|
+
rateAmount?: number;
|
|
428
|
+
currency?: string;
|
|
429
|
+
carrier?: string;
|
|
430
|
+
serviceCode?: string;
|
|
431
|
+
estimatedDeliveryDays?: number;
|
|
432
|
+
} | null);
|
|
433
|
+
taxLines?: Array<{
|
|
434
|
+
id?: string;
|
|
435
|
+
lineItemId?: string;
|
|
436
|
+
jurisdictionCode?: string;
|
|
437
|
+
jurisdictionName?: string | null;
|
|
438
|
+
taxType?: string;
|
|
439
|
+
rate?: number;
|
|
440
|
+
/**
|
|
441
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
442
|
+
*/
|
|
443
|
+
amount?: number;
|
|
444
|
+
currency?: string | null;
|
|
445
|
+
}>;
|
|
330
446
|
/**
|
|
331
447
|
* Arbitrary key-value metadata
|
|
332
448
|
*/
|
|
333
449
|
metadata?: Record<string, any>;
|
|
334
|
-
|
|
450
|
+
createdAt?: string;
|
|
335
451
|
};
|
|
336
452
|
meta?: {
|
|
337
453
|
request_id?: string;
|
|
@@ -350,9 +466,9 @@ export declare class CartsService {
|
|
|
350
466
|
static deleteApiV1CartsDiscount(id: string): CancelablePromise<{
|
|
351
467
|
data?: {
|
|
352
468
|
id?: string;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
469
|
+
merchantId?: string;
|
|
470
|
+
storeId?: string | null;
|
|
471
|
+
customerId?: string | null;
|
|
356
472
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
357
473
|
currency?: string;
|
|
358
474
|
/**
|
|
@@ -362,22 +478,397 @@ export declare class CartsService {
|
|
|
362
478
|
/**
|
|
363
479
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
364
480
|
*/
|
|
365
|
-
|
|
481
|
+
taxTotal?: number;
|
|
482
|
+
/**
|
|
483
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
484
|
+
*/
|
|
485
|
+
discountTotal?: number;
|
|
366
486
|
/**
|
|
367
487
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
368
488
|
*/
|
|
369
|
-
|
|
489
|
+
shippingTotal?: number;
|
|
370
490
|
/**
|
|
371
491
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
372
492
|
*/
|
|
373
493
|
total?: number;
|
|
374
|
-
|
|
494
|
+
discountCode?: string | null;
|
|
495
|
+
selectedShipping?: ({
|
|
496
|
+
methodId?: string;
|
|
497
|
+
displayName?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
500
|
+
*/
|
|
501
|
+
rateAmount?: number;
|
|
502
|
+
currency?: string;
|
|
503
|
+
carrier?: string;
|
|
504
|
+
serviceCode?: string;
|
|
505
|
+
estimatedDeliveryDays?: number;
|
|
506
|
+
} | null);
|
|
507
|
+
taxLines?: Array<{
|
|
508
|
+
id?: string;
|
|
509
|
+
lineItemId?: string;
|
|
510
|
+
jurisdictionCode?: string;
|
|
511
|
+
jurisdictionName?: string | null;
|
|
512
|
+
taxType?: string;
|
|
513
|
+
rate?: number;
|
|
514
|
+
/**
|
|
515
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
516
|
+
*/
|
|
517
|
+
amount?: number;
|
|
518
|
+
currency?: string | null;
|
|
519
|
+
}>;
|
|
375
520
|
/**
|
|
376
521
|
* Arbitrary key-value metadata
|
|
377
522
|
*/
|
|
378
523
|
metadata?: Record<string, any>;
|
|
379
|
-
|
|
524
|
+
createdAt?: string;
|
|
525
|
+
};
|
|
526
|
+
meta?: {
|
|
527
|
+
request_id?: string;
|
|
528
|
+
pagination?: {
|
|
529
|
+
cursor?: string | null;
|
|
530
|
+
has_more?: boolean;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
}>;
|
|
534
|
+
/**
|
|
535
|
+
* Select a shipping method for a cart
|
|
536
|
+
* @param id
|
|
537
|
+
* @param requestBody
|
|
538
|
+
* @returns any Default Response
|
|
539
|
+
* @throws ApiError
|
|
540
|
+
*/
|
|
541
|
+
static postApiV1CartsShipping(id: string, requestBody: {
|
|
542
|
+
methodId: string;
|
|
543
|
+
displayName: string;
|
|
544
|
+
/**
|
|
545
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
546
|
+
*/
|
|
547
|
+
rateAmount: number;
|
|
548
|
+
currency?: string;
|
|
549
|
+
carrier?: string;
|
|
550
|
+
serviceCode?: string;
|
|
551
|
+
estimatedDeliveryDays?: number;
|
|
552
|
+
}): CancelablePromise<{
|
|
553
|
+
data?: {
|
|
554
|
+
id?: string;
|
|
555
|
+
merchantId?: string;
|
|
556
|
+
storeId?: string | null;
|
|
557
|
+
customerId?: string | null;
|
|
558
|
+
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
559
|
+
currency?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
562
|
+
*/
|
|
563
|
+
subtotal?: number;
|
|
564
|
+
/**
|
|
565
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
566
|
+
*/
|
|
567
|
+
taxTotal?: number;
|
|
568
|
+
/**
|
|
569
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
570
|
+
*/
|
|
571
|
+
discountTotal?: number;
|
|
572
|
+
/**
|
|
573
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
574
|
+
*/
|
|
575
|
+
shippingTotal?: number;
|
|
576
|
+
/**
|
|
577
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
578
|
+
*/
|
|
579
|
+
total?: number;
|
|
580
|
+
discountCode?: string | null;
|
|
581
|
+
selectedShipping?: ({
|
|
582
|
+
methodId?: string;
|
|
583
|
+
displayName?: string;
|
|
584
|
+
/**
|
|
585
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
586
|
+
*/
|
|
587
|
+
rateAmount?: number;
|
|
588
|
+
currency?: string;
|
|
589
|
+
carrier?: string;
|
|
590
|
+
serviceCode?: string;
|
|
591
|
+
estimatedDeliveryDays?: number;
|
|
592
|
+
} | null);
|
|
593
|
+
taxLines?: Array<{
|
|
594
|
+
id?: string;
|
|
595
|
+
lineItemId?: string;
|
|
596
|
+
jurisdictionCode?: string;
|
|
597
|
+
jurisdictionName?: string | null;
|
|
598
|
+
taxType?: string;
|
|
599
|
+
rate?: number;
|
|
600
|
+
/**
|
|
601
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
602
|
+
*/
|
|
603
|
+
amount?: number;
|
|
604
|
+
currency?: string | null;
|
|
605
|
+
}>;
|
|
606
|
+
/**
|
|
607
|
+
* Arbitrary key-value metadata
|
|
608
|
+
*/
|
|
609
|
+
metadata?: Record<string, any>;
|
|
610
|
+
createdAt?: string;
|
|
611
|
+
};
|
|
612
|
+
meta?: {
|
|
613
|
+
request_id?: string;
|
|
614
|
+
pagination?: {
|
|
615
|
+
cursor?: string | null;
|
|
616
|
+
has_more?: boolean;
|
|
617
|
+
};
|
|
380
618
|
};
|
|
619
|
+
}>;
|
|
620
|
+
/**
|
|
621
|
+
* Clear the selected shipping method from a cart
|
|
622
|
+
* @param id
|
|
623
|
+
* @returns any Default Response
|
|
624
|
+
* @throws ApiError
|
|
625
|
+
*/
|
|
626
|
+
static deleteApiV1CartsShipping(id: string): CancelablePromise<{
|
|
627
|
+
data?: {
|
|
628
|
+
id?: string;
|
|
629
|
+
merchantId?: string;
|
|
630
|
+
storeId?: string | null;
|
|
631
|
+
customerId?: string | null;
|
|
632
|
+
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
633
|
+
currency?: string;
|
|
634
|
+
/**
|
|
635
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
636
|
+
*/
|
|
637
|
+
subtotal?: number;
|
|
638
|
+
/**
|
|
639
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
640
|
+
*/
|
|
641
|
+
taxTotal?: number;
|
|
642
|
+
/**
|
|
643
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
644
|
+
*/
|
|
645
|
+
discountTotal?: number;
|
|
646
|
+
/**
|
|
647
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
648
|
+
*/
|
|
649
|
+
shippingTotal?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
652
|
+
*/
|
|
653
|
+
total?: number;
|
|
654
|
+
discountCode?: string | null;
|
|
655
|
+
selectedShipping?: ({
|
|
656
|
+
methodId?: string;
|
|
657
|
+
displayName?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
660
|
+
*/
|
|
661
|
+
rateAmount?: number;
|
|
662
|
+
currency?: string;
|
|
663
|
+
carrier?: string;
|
|
664
|
+
serviceCode?: string;
|
|
665
|
+
estimatedDeliveryDays?: number;
|
|
666
|
+
} | null);
|
|
667
|
+
taxLines?: Array<{
|
|
668
|
+
id?: string;
|
|
669
|
+
lineItemId?: string;
|
|
670
|
+
jurisdictionCode?: string;
|
|
671
|
+
jurisdictionName?: string | null;
|
|
672
|
+
taxType?: string;
|
|
673
|
+
rate?: number;
|
|
674
|
+
/**
|
|
675
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
676
|
+
*/
|
|
677
|
+
amount?: number;
|
|
678
|
+
currency?: string | null;
|
|
679
|
+
}>;
|
|
680
|
+
/**
|
|
681
|
+
* Arbitrary key-value metadata
|
|
682
|
+
*/
|
|
683
|
+
metadata?: Record<string, any>;
|
|
684
|
+
createdAt?: string;
|
|
685
|
+
};
|
|
686
|
+
meta?: {
|
|
687
|
+
request_id?: string;
|
|
688
|
+
pagination?: {
|
|
689
|
+
cursor?: string | null;
|
|
690
|
+
has_more?: boolean;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
}>;
|
|
694
|
+
/**
|
|
695
|
+
* Replace all tax lines on a cart
|
|
696
|
+
* @param id
|
|
697
|
+
* @param requestBody
|
|
698
|
+
* @returns any Default Response
|
|
699
|
+
* @throws ApiError
|
|
700
|
+
*/
|
|
701
|
+
static putApiV1CartsTaxLines(id: string, requestBody: {
|
|
702
|
+
lines: Array<{
|
|
703
|
+
lineItemId: string;
|
|
704
|
+
jurisdictionCode: string;
|
|
705
|
+
jurisdictionName?: string;
|
|
706
|
+
taxType: 'sales' | 'vat' | 'gst' | 'pst' | 'hst' | 'service' | 'excise' | 'other';
|
|
707
|
+
rate: number;
|
|
708
|
+
amount: number;
|
|
709
|
+
currency?: string;
|
|
710
|
+
}>;
|
|
711
|
+
}): CancelablePromise<{
|
|
712
|
+
data?: {
|
|
713
|
+
id?: string;
|
|
714
|
+
merchantId?: string;
|
|
715
|
+
storeId?: string | null;
|
|
716
|
+
customerId?: string | null;
|
|
717
|
+
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
718
|
+
currency?: string;
|
|
719
|
+
/**
|
|
720
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
721
|
+
*/
|
|
722
|
+
subtotal?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
725
|
+
*/
|
|
726
|
+
taxTotal?: number;
|
|
727
|
+
/**
|
|
728
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
729
|
+
*/
|
|
730
|
+
discountTotal?: number;
|
|
731
|
+
/**
|
|
732
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
733
|
+
*/
|
|
734
|
+
shippingTotal?: number;
|
|
735
|
+
/**
|
|
736
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
737
|
+
*/
|
|
738
|
+
total?: number;
|
|
739
|
+
discountCode?: string | null;
|
|
740
|
+
selectedShipping?: ({
|
|
741
|
+
methodId?: string;
|
|
742
|
+
displayName?: string;
|
|
743
|
+
/**
|
|
744
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
745
|
+
*/
|
|
746
|
+
rateAmount?: number;
|
|
747
|
+
currency?: string;
|
|
748
|
+
carrier?: string;
|
|
749
|
+
serviceCode?: string;
|
|
750
|
+
estimatedDeliveryDays?: number;
|
|
751
|
+
} | null);
|
|
752
|
+
taxLines?: Array<{
|
|
753
|
+
id?: string;
|
|
754
|
+
lineItemId?: string;
|
|
755
|
+
jurisdictionCode?: string;
|
|
756
|
+
jurisdictionName?: string | null;
|
|
757
|
+
taxType?: string;
|
|
758
|
+
rate?: number;
|
|
759
|
+
/**
|
|
760
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
761
|
+
*/
|
|
762
|
+
amount?: number;
|
|
763
|
+
currency?: string | null;
|
|
764
|
+
}>;
|
|
765
|
+
/**
|
|
766
|
+
* Arbitrary key-value metadata
|
|
767
|
+
*/
|
|
768
|
+
metadata?: Record<string, any>;
|
|
769
|
+
createdAt?: string;
|
|
770
|
+
};
|
|
771
|
+
meta?: {
|
|
772
|
+
request_id?: string;
|
|
773
|
+
pagination?: {
|
|
774
|
+
cursor?: string | null;
|
|
775
|
+
has_more?: boolean;
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
}>;
|
|
779
|
+
/**
|
|
780
|
+
* Clear all tax lines from a cart
|
|
781
|
+
* @param id
|
|
782
|
+
* @returns any Default Response
|
|
783
|
+
* @throws ApiError
|
|
784
|
+
*/
|
|
785
|
+
static deleteApiV1CartsTaxLines(id: string): CancelablePromise<{
|
|
786
|
+
data?: {
|
|
787
|
+
id?: string;
|
|
788
|
+
merchantId?: string;
|
|
789
|
+
storeId?: string | null;
|
|
790
|
+
customerId?: string | null;
|
|
791
|
+
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
792
|
+
currency?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
795
|
+
*/
|
|
796
|
+
subtotal?: number;
|
|
797
|
+
/**
|
|
798
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
799
|
+
*/
|
|
800
|
+
taxTotal?: number;
|
|
801
|
+
/**
|
|
802
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
803
|
+
*/
|
|
804
|
+
discountTotal?: number;
|
|
805
|
+
/**
|
|
806
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
807
|
+
*/
|
|
808
|
+
shippingTotal?: number;
|
|
809
|
+
/**
|
|
810
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
811
|
+
*/
|
|
812
|
+
total?: number;
|
|
813
|
+
discountCode?: string | null;
|
|
814
|
+
selectedShipping?: ({
|
|
815
|
+
methodId?: string;
|
|
816
|
+
displayName?: string;
|
|
817
|
+
/**
|
|
818
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
819
|
+
*/
|
|
820
|
+
rateAmount?: number;
|
|
821
|
+
currency?: string;
|
|
822
|
+
carrier?: string;
|
|
823
|
+
serviceCode?: string;
|
|
824
|
+
estimatedDeliveryDays?: number;
|
|
825
|
+
} | null);
|
|
826
|
+
taxLines?: Array<{
|
|
827
|
+
id?: string;
|
|
828
|
+
lineItemId?: string;
|
|
829
|
+
jurisdictionCode?: string;
|
|
830
|
+
jurisdictionName?: string | null;
|
|
831
|
+
taxType?: string;
|
|
832
|
+
rate?: number;
|
|
833
|
+
/**
|
|
834
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
835
|
+
*/
|
|
836
|
+
amount?: number;
|
|
837
|
+
currency?: string | null;
|
|
838
|
+
}>;
|
|
839
|
+
/**
|
|
840
|
+
* Arbitrary key-value metadata
|
|
841
|
+
*/
|
|
842
|
+
metadata?: Record<string, any>;
|
|
843
|
+
createdAt?: string;
|
|
844
|
+
};
|
|
845
|
+
meta?: {
|
|
846
|
+
request_id?: string;
|
|
847
|
+
pagination?: {
|
|
848
|
+
cursor?: string | null;
|
|
849
|
+
has_more?: boolean;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
}>;
|
|
853
|
+
/**
|
|
854
|
+
* List audit events for a cart
|
|
855
|
+
* @param id
|
|
856
|
+
* @param sinceSequence
|
|
857
|
+
* @param limit
|
|
858
|
+
* @returns any Default Response
|
|
859
|
+
* @throws ApiError
|
|
860
|
+
*/
|
|
861
|
+
static getApiV1CartsEvents(id: string, sinceSequence?: number, limit?: number): CancelablePromise<{
|
|
862
|
+
data?: Array<{
|
|
863
|
+
id?: string;
|
|
864
|
+
cartId?: string;
|
|
865
|
+
eventType?: string;
|
|
866
|
+
sequence?: number;
|
|
867
|
+
payload?: Record<string, any>;
|
|
868
|
+
actorType?: string;
|
|
869
|
+
actorId?: string | null;
|
|
870
|
+
createdAt?: string;
|
|
871
|
+
}>;
|
|
381
872
|
meta?: {
|
|
382
873
|
request_id?: string;
|
|
383
874
|
pagination?: {
|