@usethrottle/api-client 5.17.0 → 5.19.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/README.md +7 -0
- package/dist/__tests__/cart-customer-detach-types.test.d.ts +2 -0
- package/dist/__tests__/cart-customer-detach-types.test.d.ts.map +1 -0
- package/dist/__tests__/cart-customer-detach-types.test.js +17 -0
- package/dist/__tests__/cart-customer-detach-types.test.js.map +1 -0
- package/dist/__tests__/currency-code-types.test.d.ts +2 -0
- package/dist/__tests__/currency-code-types.test.d.ts.map +1 -0
- package/dist/__tests__/currency-code-types.test.js +37 -0
- package/dist/__tests__/currency-code-types.test.js.map +1 -0
- package/dist/__tests__/money-reexports.test.d.ts +2 -0
- package/dist/__tests__/money-reexports.test.d.ts.map +1 -0
- package/dist/__tests__/money-reexports.test.js +33 -0
- package/dist/__tests__/money-reexports.test.js.map +1 -0
- package/dist/generated/services/ApplicationsService.d.ts +40 -4
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js +2 -0
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +211 -196
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/ConnectorsService.d.ts +42 -0
- package/dist/generated/services/ConnectorsService.d.ts.map +1 -1
- package/dist/generated/services/ConnectorsService.js +12 -0
- package/dist/generated/services/ConnectorsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +1 -1
- package/dist/generated/services/CustomersService.js +1 -1
- package/dist/generated/services/DefaultService.d.ts +35 -3
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +32 -0
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +111 -11
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/EmbedService.d.ts +1 -1
- package/dist/generated/services/EmbedService.d.ts.map +1 -1
- package/dist/generated/services/EmbedService.js +3 -2
- package/dist/generated/services/EmbedService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +208 -204
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +1 -0
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentMethodsService.d.ts +5 -1
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +3 -1
- package/dist/generated/services/PaymentMethodsService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +33 -26
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +4 -1
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +248 -20
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +85 -1
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/ReturnsService.d.ts +17 -0
- package/dist/generated/services/ReturnsService.d.ts.map +1 -1
- package/dist/generated/services/ReturnsService.js.map +1 -1
- package/dist/generated/services/StoresService.d.ts +5 -4
- package/dist/generated/services/StoresService.d.ts.map +1 -1
- package/dist/generated/services/StoresService.js +3 -0
- package/dist/generated/services/StoresService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +28 -27
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
import type { CurrencyCode } from '@usethrottle/money';
|
|
2
3
|
export declare class CartsService {
|
|
3
4
|
/**
|
|
4
5
|
* Create a new cart
|
|
@@ -19,7 +20,7 @@ export declare class CartsService {
|
|
|
19
20
|
*/
|
|
20
21
|
metadata?: Record<string, any>;
|
|
21
22
|
/**
|
|
22
|
-
* Makes this a resolved cart: the installed app (extension) prices its resolved lines through its line resolver.
|
|
23
|
+
* Makes this a resolved cart: the installed app (extension) prices its resolved lines through its line resolver. `currency` is the environment's currency or one of its extra cart currencies (`cartCurrencies`), otherwise `422 currency_not_enabled`; omitted, it is the environment's currency. An app that is not installed and active answers `422 line_resolver_not_available`.
|
|
23
24
|
*/
|
|
24
25
|
lineResolver?: {
|
|
25
26
|
extensionId: string;
|
|
@@ -43,25 +44,25 @@ export declare class CartsService {
|
|
|
43
44
|
customerId?: string | null;
|
|
44
45
|
customerEmail?: string | null;
|
|
45
46
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
46
|
-
currency?:
|
|
47
|
+
currency?: CurrencyCode;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
49
50
|
*/
|
|
50
51
|
subtotal?: number;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
53
54
|
*/
|
|
54
55
|
taxTotal?: number;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
57
58
|
*/
|
|
58
59
|
discountTotal?: number;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
61
62
|
*/
|
|
62
63
|
shippingTotal?: number;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
65
66
|
*/
|
|
66
67
|
total?: number;
|
|
67
68
|
lineItems?: Array<{
|
|
@@ -72,24 +73,24 @@ export declare class CartsService {
|
|
|
72
73
|
name?: string;
|
|
73
74
|
description?: string | null;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
76
77
|
*/
|
|
77
78
|
unitPrice?: number;
|
|
78
79
|
quantity?: number;
|
|
79
80
|
/**
|
|
80
|
-
*
|
|
81
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
81
82
|
*/
|
|
82
83
|
subtotal?: number;
|
|
83
84
|
/**
|
|
84
|
-
*
|
|
85
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
85
86
|
*/
|
|
86
87
|
taxAmount?: number;
|
|
87
88
|
/**
|
|
88
|
-
*
|
|
89
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
89
90
|
*/
|
|
90
91
|
discountAmount?: number;
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
93
94
|
*/
|
|
94
95
|
total?: number;
|
|
95
96
|
/**
|
|
@@ -108,7 +109,7 @@ export declare class CartsService {
|
|
|
108
109
|
totalPayments?: number | null;
|
|
109
110
|
trialDays?: number;
|
|
110
111
|
/**
|
|
111
|
-
*
|
|
112
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
112
113
|
*/
|
|
113
114
|
amount?: number | null;
|
|
114
115
|
count?: number | null;
|
|
@@ -118,7 +119,7 @@ export declare class CartsService {
|
|
|
118
119
|
intervalCount?: number | null;
|
|
119
120
|
}> | null;
|
|
120
121
|
/**
|
|
121
|
-
*
|
|
122
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
122
123
|
*/
|
|
123
124
|
scheduleUnitTotal?: number | null;
|
|
124
125
|
} | null;
|
|
@@ -154,10 +155,10 @@ export declare class CartsService {
|
|
|
154
155
|
code?: string;
|
|
155
156
|
type?: 'percentage' | 'fixed_amount';
|
|
156
157
|
/**
|
|
157
|
-
*
|
|
158
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
158
159
|
*/
|
|
159
160
|
amount?: number;
|
|
160
|
-
currency?:
|
|
161
|
+
currency?: CurrencyCode;
|
|
161
162
|
freeShipping?: boolean;
|
|
162
163
|
validUntil?: string | null;
|
|
163
164
|
snapshotHash?: string;
|
|
@@ -166,10 +167,10 @@ export declare class CartsService {
|
|
|
166
167
|
methodId?: string;
|
|
167
168
|
displayName?: string;
|
|
168
169
|
/**
|
|
169
|
-
*
|
|
170
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
170
171
|
*/
|
|
171
172
|
rateAmount?: number;
|
|
172
|
-
currency?:
|
|
173
|
+
currency?: CurrencyCode;
|
|
173
174
|
carrier?: string;
|
|
174
175
|
serviceCode?: string;
|
|
175
176
|
estimatedDeliveryDays?: number;
|
|
@@ -185,10 +186,10 @@ export declare class CartsService {
|
|
|
185
186
|
rateTypeCode?: string | null;
|
|
186
187
|
rate?: number;
|
|
187
188
|
/**
|
|
188
|
-
*
|
|
189
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
189
190
|
*/
|
|
190
191
|
amount?: number;
|
|
191
|
-
currency?:
|
|
192
|
+
currency?: CurrencyCode | null;
|
|
192
193
|
}>;
|
|
193
194
|
/**
|
|
194
195
|
* Arbitrary key-value metadata
|
|
@@ -222,25 +223,25 @@ export declare class CartsService {
|
|
|
222
223
|
customerId?: string | null;
|
|
223
224
|
customerEmail?: string | null;
|
|
224
225
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
225
|
-
currency?:
|
|
226
|
+
currency?: CurrencyCode;
|
|
226
227
|
/**
|
|
227
|
-
*
|
|
228
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
228
229
|
*/
|
|
229
230
|
subtotal?: number;
|
|
230
231
|
/**
|
|
231
|
-
*
|
|
232
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
232
233
|
*/
|
|
233
234
|
taxTotal?: number;
|
|
234
235
|
/**
|
|
235
|
-
*
|
|
236
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
236
237
|
*/
|
|
237
238
|
discountTotal?: number;
|
|
238
239
|
/**
|
|
239
|
-
*
|
|
240
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
240
241
|
*/
|
|
241
242
|
shippingTotal?: number;
|
|
242
243
|
/**
|
|
243
|
-
*
|
|
244
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
244
245
|
*/
|
|
245
246
|
total?: number;
|
|
246
247
|
lineItems?: Array<{
|
|
@@ -251,24 +252,24 @@ export declare class CartsService {
|
|
|
251
252
|
name?: string;
|
|
252
253
|
description?: string | null;
|
|
253
254
|
/**
|
|
254
|
-
*
|
|
255
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
255
256
|
*/
|
|
256
257
|
unitPrice?: number;
|
|
257
258
|
quantity?: number;
|
|
258
259
|
/**
|
|
259
|
-
*
|
|
260
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
260
261
|
*/
|
|
261
262
|
subtotal?: number;
|
|
262
263
|
/**
|
|
263
|
-
*
|
|
264
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
264
265
|
*/
|
|
265
266
|
taxAmount?: number;
|
|
266
267
|
/**
|
|
267
|
-
*
|
|
268
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
268
269
|
*/
|
|
269
270
|
discountAmount?: number;
|
|
270
271
|
/**
|
|
271
|
-
*
|
|
272
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
272
273
|
*/
|
|
273
274
|
total?: number;
|
|
274
275
|
/**
|
|
@@ -287,7 +288,7 @@ export declare class CartsService {
|
|
|
287
288
|
totalPayments?: number | null;
|
|
288
289
|
trialDays?: number;
|
|
289
290
|
/**
|
|
290
|
-
*
|
|
291
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
291
292
|
*/
|
|
292
293
|
amount?: number | null;
|
|
293
294
|
count?: number | null;
|
|
@@ -297,7 +298,7 @@ export declare class CartsService {
|
|
|
297
298
|
intervalCount?: number | null;
|
|
298
299
|
}> | null;
|
|
299
300
|
/**
|
|
300
|
-
*
|
|
301
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
301
302
|
*/
|
|
302
303
|
scheduleUnitTotal?: number | null;
|
|
303
304
|
} | null;
|
|
@@ -333,10 +334,10 @@ export declare class CartsService {
|
|
|
333
334
|
code?: string;
|
|
334
335
|
type?: 'percentage' | 'fixed_amount';
|
|
335
336
|
/**
|
|
336
|
-
*
|
|
337
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
337
338
|
*/
|
|
338
339
|
amount?: number;
|
|
339
|
-
currency?:
|
|
340
|
+
currency?: CurrencyCode;
|
|
340
341
|
freeShipping?: boolean;
|
|
341
342
|
validUntil?: string | null;
|
|
342
343
|
snapshotHash?: string;
|
|
@@ -345,10 +346,10 @@ export declare class CartsService {
|
|
|
345
346
|
methodId?: string;
|
|
346
347
|
displayName?: string;
|
|
347
348
|
/**
|
|
348
|
-
*
|
|
349
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
349
350
|
*/
|
|
350
351
|
rateAmount?: number;
|
|
351
|
-
currency?:
|
|
352
|
+
currency?: CurrencyCode;
|
|
352
353
|
carrier?: string;
|
|
353
354
|
serviceCode?: string;
|
|
354
355
|
estimatedDeliveryDays?: number;
|
|
@@ -364,10 +365,10 @@ export declare class CartsService {
|
|
|
364
365
|
rateTypeCode?: string | null;
|
|
365
366
|
rate?: number;
|
|
366
367
|
/**
|
|
367
|
-
*
|
|
368
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
368
369
|
*/
|
|
369
370
|
amount?: number;
|
|
370
|
-
currency?:
|
|
371
|
+
currency?: CurrencyCode | null;
|
|
371
372
|
}>;
|
|
372
373
|
/**
|
|
373
374
|
* Arbitrary key-value metadata
|
|
@@ -395,7 +396,10 @@ export declare class CartsService {
|
|
|
395
396
|
* @throws ApiError
|
|
396
397
|
*/
|
|
397
398
|
static patchApiV1Carts(id: string, requestBody: {
|
|
398
|
-
|
|
399
|
+
/**
|
|
400
|
+
* Send null to detach the customer; omit to keep it.
|
|
401
|
+
*/
|
|
402
|
+
customerId?: string | null;
|
|
399
403
|
customerEmail?: string | null;
|
|
400
404
|
billingAddress?: Record<string, any>;
|
|
401
405
|
shippingAddress?: Record<string, any>;
|
|
@@ -414,25 +418,25 @@ export declare class CartsService {
|
|
|
414
418
|
customerId?: string | null;
|
|
415
419
|
customerEmail?: string | null;
|
|
416
420
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
417
|
-
currency?:
|
|
421
|
+
currency?: CurrencyCode;
|
|
418
422
|
/**
|
|
419
|
-
*
|
|
423
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
420
424
|
*/
|
|
421
425
|
subtotal?: number;
|
|
422
426
|
/**
|
|
423
|
-
*
|
|
427
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
424
428
|
*/
|
|
425
429
|
taxTotal?: number;
|
|
426
430
|
/**
|
|
427
|
-
*
|
|
431
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
428
432
|
*/
|
|
429
433
|
discountTotal?: number;
|
|
430
434
|
/**
|
|
431
|
-
*
|
|
435
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
432
436
|
*/
|
|
433
437
|
shippingTotal?: number;
|
|
434
438
|
/**
|
|
435
|
-
*
|
|
439
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
436
440
|
*/
|
|
437
441
|
total?: number;
|
|
438
442
|
lineItems?: Array<{
|
|
@@ -443,24 +447,24 @@ export declare class CartsService {
|
|
|
443
447
|
name?: string;
|
|
444
448
|
description?: string | null;
|
|
445
449
|
/**
|
|
446
|
-
*
|
|
450
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
447
451
|
*/
|
|
448
452
|
unitPrice?: number;
|
|
449
453
|
quantity?: number;
|
|
450
454
|
/**
|
|
451
|
-
*
|
|
455
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
452
456
|
*/
|
|
453
457
|
subtotal?: number;
|
|
454
458
|
/**
|
|
455
|
-
*
|
|
459
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
456
460
|
*/
|
|
457
461
|
taxAmount?: number;
|
|
458
462
|
/**
|
|
459
|
-
*
|
|
463
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
460
464
|
*/
|
|
461
465
|
discountAmount?: number;
|
|
462
466
|
/**
|
|
463
|
-
*
|
|
467
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
464
468
|
*/
|
|
465
469
|
total?: number;
|
|
466
470
|
/**
|
|
@@ -479,7 +483,7 @@ export declare class CartsService {
|
|
|
479
483
|
totalPayments?: number | null;
|
|
480
484
|
trialDays?: number;
|
|
481
485
|
/**
|
|
482
|
-
*
|
|
486
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
483
487
|
*/
|
|
484
488
|
amount?: number | null;
|
|
485
489
|
count?: number | null;
|
|
@@ -489,7 +493,7 @@ export declare class CartsService {
|
|
|
489
493
|
intervalCount?: number | null;
|
|
490
494
|
}> | null;
|
|
491
495
|
/**
|
|
492
|
-
*
|
|
496
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
493
497
|
*/
|
|
494
498
|
scheduleUnitTotal?: number | null;
|
|
495
499
|
} | null;
|
|
@@ -525,10 +529,10 @@ export declare class CartsService {
|
|
|
525
529
|
code?: string;
|
|
526
530
|
type?: 'percentage' | 'fixed_amount';
|
|
527
531
|
/**
|
|
528
|
-
*
|
|
532
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
529
533
|
*/
|
|
530
534
|
amount?: number;
|
|
531
|
-
currency?:
|
|
535
|
+
currency?: CurrencyCode;
|
|
532
536
|
freeShipping?: boolean;
|
|
533
537
|
validUntil?: string | null;
|
|
534
538
|
snapshotHash?: string;
|
|
@@ -537,10 +541,10 @@ export declare class CartsService {
|
|
|
537
541
|
methodId?: string;
|
|
538
542
|
displayName?: string;
|
|
539
543
|
/**
|
|
540
|
-
*
|
|
544
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
541
545
|
*/
|
|
542
546
|
rateAmount?: number;
|
|
543
|
-
currency?:
|
|
547
|
+
currency?: CurrencyCode;
|
|
544
548
|
carrier?: string;
|
|
545
549
|
serviceCode?: string;
|
|
546
550
|
estimatedDeliveryDays?: number;
|
|
@@ -556,10 +560,10 @@ export declare class CartsService {
|
|
|
556
560
|
rateTypeCode?: string | null;
|
|
557
561
|
rate?: number;
|
|
558
562
|
/**
|
|
559
|
-
*
|
|
563
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
560
564
|
*/
|
|
561
565
|
amount?: number;
|
|
562
|
-
currency?:
|
|
566
|
+
currency?: CurrencyCode | null;
|
|
563
567
|
}>;
|
|
564
568
|
/**
|
|
565
569
|
* Arbitrary key-value metadata
|
|
@@ -592,16 +596,16 @@ export declare class CartsService {
|
|
|
592
596
|
name?: string;
|
|
593
597
|
description?: string;
|
|
594
598
|
/**
|
|
595
|
-
*
|
|
599
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
596
600
|
*/
|
|
597
601
|
unitPrice?: number;
|
|
598
602
|
quantity?: number;
|
|
599
603
|
/**
|
|
600
|
-
*
|
|
604
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
601
605
|
*/
|
|
602
606
|
taxAmount?: number;
|
|
603
607
|
/**
|
|
604
|
-
*
|
|
608
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
605
609
|
*/
|
|
606
610
|
discountAmount?: number;
|
|
607
611
|
/**
|
|
@@ -643,24 +647,24 @@ export declare class CartsService {
|
|
|
643
647
|
name?: string;
|
|
644
648
|
description?: string | null;
|
|
645
649
|
/**
|
|
646
|
-
*
|
|
650
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
647
651
|
*/
|
|
648
652
|
unitPrice?: number;
|
|
649
653
|
quantity?: number;
|
|
650
654
|
/**
|
|
651
|
-
*
|
|
655
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
652
656
|
*/
|
|
653
657
|
subtotal?: number;
|
|
654
658
|
/**
|
|
655
|
-
*
|
|
659
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
656
660
|
*/
|
|
657
661
|
taxAmount?: number;
|
|
658
662
|
/**
|
|
659
|
-
*
|
|
663
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
660
664
|
*/
|
|
661
665
|
discountAmount?: number;
|
|
662
666
|
/**
|
|
663
|
-
*
|
|
667
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
664
668
|
*/
|
|
665
669
|
total?: number;
|
|
666
670
|
/**
|
|
@@ -679,7 +683,7 @@ export declare class CartsService {
|
|
|
679
683
|
totalPayments?: number | null;
|
|
680
684
|
trialDays?: number;
|
|
681
685
|
/**
|
|
682
|
-
*
|
|
686
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
683
687
|
*/
|
|
684
688
|
amount?: number | null;
|
|
685
689
|
count?: number | null;
|
|
@@ -689,7 +693,7 @@ export declare class CartsService {
|
|
|
689
693
|
intervalCount?: number | null;
|
|
690
694
|
}> | null;
|
|
691
695
|
/**
|
|
692
|
-
*
|
|
696
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
693
697
|
*/
|
|
694
698
|
scheduleUnitTotal?: number | null;
|
|
695
699
|
} | null;
|
|
@@ -703,6 +707,10 @@ export declare class CartsService {
|
|
|
703
707
|
* Arbitrary key-value metadata
|
|
704
708
|
*/
|
|
705
709
|
metadata?: Record<string, any>;
|
|
710
|
+
/**
|
|
711
|
+
* The cart's currency; the line's amounts are minor units of it
|
|
712
|
+
*/
|
|
713
|
+
currency?: CurrencyCode;
|
|
706
714
|
};
|
|
707
715
|
meta?: {
|
|
708
716
|
/**
|
|
@@ -727,15 +735,15 @@ export declare class CartsService {
|
|
|
727
735
|
static patchApiV1CartsItems(cartId: string, id: string, requestBody: {
|
|
728
736
|
quantity?: number;
|
|
729
737
|
/**
|
|
730
|
-
*
|
|
738
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
731
739
|
*/
|
|
732
740
|
unitPrice?: number;
|
|
733
741
|
/**
|
|
734
|
-
*
|
|
742
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
735
743
|
*/
|
|
736
744
|
taxAmount?: number;
|
|
737
745
|
/**
|
|
738
|
-
*
|
|
746
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
739
747
|
*/
|
|
740
748
|
discountAmount?: number;
|
|
741
749
|
/**
|
|
@@ -751,24 +759,24 @@ export declare class CartsService {
|
|
|
751
759
|
name?: string;
|
|
752
760
|
description?: string | null;
|
|
753
761
|
/**
|
|
754
|
-
*
|
|
762
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
755
763
|
*/
|
|
756
764
|
unitPrice?: number;
|
|
757
765
|
quantity?: number;
|
|
758
766
|
/**
|
|
759
|
-
*
|
|
767
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
760
768
|
*/
|
|
761
769
|
subtotal?: number;
|
|
762
770
|
/**
|
|
763
|
-
*
|
|
771
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
764
772
|
*/
|
|
765
773
|
taxAmount?: number;
|
|
766
774
|
/**
|
|
767
|
-
*
|
|
775
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
768
776
|
*/
|
|
769
777
|
discountAmount?: number;
|
|
770
778
|
/**
|
|
771
|
-
*
|
|
779
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
772
780
|
*/
|
|
773
781
|
total?: number;
|
|
774
782
|
/**
|
|
@@ -787,7 +795,7 @@ export declare class CartsService {
|
|
|
787
795
|
totalPayments?: number | null;
|
|
788
796
|
trialDays?: number;
|
|
789
797
|
/**
|
|
790
|
-
*
|
|
798
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
791
799
|
*/
|
|
792
800
|
amount?: number | null;
|
|
793
801
|
count?: number | null;
|
|
@@ -797,7 +805,7 @@ export declare class CartsService {
|
|
|
797
805
|
intervalCount?: number | null;
|
|
798
806
|
}> | null;
|
|
799
807
|
/**
|
|
800
|
-
*
|
|
808
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
801
809
|
*/
|
|
802
810
|
scheduleUnitTotal?: number | null;
|
|
803
811
|
} | null;
|
|
@@ -811,6 +819,10 @@ export declare class CartsService {
|
|
|
811
819
|
* Arbitrary key-value metadata
|
|
812
820
|
*/
|
|
813
821
|
metadata?: Record<string, any>;
|
|
822
|
+
/**
|
|
823
|
+
* The cart's currency; the line's amounts are minor units of it
|
|
824
|
+
*/
|
|
825
|
+
currency?: CurrencyCode;
|
|
814
826
|
};
|
|
815
827
|
meta?: {
|
|
816
828
|
/**
|
|
@@ -847,7 +859,7 @@ export declare class CartsService {
|
|
|
847
859
|
id?: string;
|
|
848
860
|
orderNumber?: string;
|
|
849
861
|
status?: 'draft';
|
|
850
|
-
currency?:
|
|
862
|
+
currency?: CurrencyCode;
|
|
851
863
|
/**
|
|
852
864
|
* In cents
|
|
853
865
|
*/
|
|
@@ -885,7 +897,7 @@ export declare class CartsService {
|
|
|
885
897
|
id?: string;
|
|
886
898
|
orderNumber?: string;
|
|
887
899
|
status?: 'draft';
|
|
888
|
-
currency?:
|
|
900
|
+
currency?: CurrencyCode;
|
|
889
901
|
/**
|
|
890
902
|
* In cents
|
|
891
903
|
*/
|
|
@@ -964,25 +976,25 @@ export declare class CartsService {
|
|
|
964
976
|
customerId?: string | null;
|
|
965
977
|
customerEmail?: string | null;
|
|
966
978
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
967
|
-
currency?:
|
|
979
|
+
currency?: CurrencyCode;
|
|
968
980
|
/**
|
|
969
|
-
*
|
|
981
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
970
982
|
*/
|
|
971
983
|
subtotal?: number;
|
|
972
984
|
/**
|
|
973
|
-
*
|
|
985
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
974
986
|
*/
|
|
975
987
|
taxTotal?: number;
|
|
976
988
|
/**
|
|
977
|
-
*
|
|
989
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
978
990
|
*/
|
|
979
991
|
discountTotal?: number;
|
|
980
992
|
/**
|
|
981
|
-
*
|
|
993
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
982
994
|
*/
|
|
983
995
|
shippingTotal?: number;
|
|
984
996
|
/**
|
|
985
|
-
*
|
|
997
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
986
998
|
*/
|
|
987
999
|
total?: number;
|
|
988
1000
|
lineItems?: Array<{
|
|
@@ -993,24 +1005,24 @@ export declare class CartsService {
|
|
|
993
1005
|
name?: string;
|
|
994
1006
|
description?: string | null;
|
|
995
1007
|
/**
|
|
996
|
-
*
|
|
1008
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
997
1009
|
*/
|
|
998
1010
|
unitPrice?: number;
|
|
999
1011
|
quantity?: number;
|
|
1000
1012
|
/**
|
|
1001
|
-
*
|
|
1013
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1002
1014
|
*/
|
|
1003
1015
|
subtotal?: number;
|
|
1004
1016
|
/**
|
|
1005
|
-
*
|
|
1017
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1006
1018
|
*/
|
|
1007
1019
|
taxAmount?: number;
|
|
1008
1020
|
/**
|
|
1009
|
-
*
|
|
1021
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1010
1022
|
*/
|
|
1011
1023
|
discountAmount?: number;
|
|
1012
1024
|
/**
|
|
1013
|
-
*
|
|
1025
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1014
1026
|
*/
|
|
1015
1027
|
total?: number;
|
|
1016
1028
|
/**
|
|
@@ -1029,7 +1041,7 @@ export declare class CartsService {
|
|
|
1029
1041
|
totalPayments?: number | null;
|
|
1030
1042
|
trialDays?: number;
|
|
1031
1043
|
/**
|
|
1032
|
-
*
|
|
1044
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1033
1045
|
*/
|
|
1034
1046
|
amount?: number | null;
|
|
1035
1047
|
count?: number | null;
|
|
@@ -1039,7 +1051,7 @@ export declare class CartsService {
|
|
|
1039
1051
|
intervalCount?: number | null;
|
|
1040
1052
|
}> | null;
|
|
1041
1053
|
/**
|
|
1042
|
-
*
|
|
1054
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1043
1055
|
*/
|
|
1044
1056
|
scheduleUnitTotal?: number | null;
|
|
1045
1057
|
} | null;
|
|
@@ -1075,10 +1087,10 @@ export declare class CartsService {
|
|
|
1075
1087
|
code?: string;
|
|
1076
1088
|
type?: 'percentage' | 'fixed_amount';
|
|
1077
1089
|
/**
|
|
1078
|
-
*
|
|
1090
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1079
1091
|
*/
|
|
1080
1092
|
amount?: number;
|
|
1081
|
-
currency?:
|
|
1093
|
+
currency?: CurrencyCode;
|
|
1082
1094
|
freeShipping?: boolean;
|
|
1083
1095
|
validUntil?: string | null;
|
|
1084
1096
|
snapshotHash?: string;
|
|
@@ -1087,10 +1099,10 @@ export declare class CartsService {
|
|
|
1087
1099
|
methodId?: string;
|
|
1088
1100
|
displayName?: string;
|
|
1089
1101
|
/**
|
|
1090
|
-
*
|
|
1102
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1091
1103
|
*/
|
|
1092
1104
|
rateAmount?: number;
|
|
1093
|
-
currency?:
|
|
1105
|
+
currency?: CurrencyCode;
|
|
1094
1106
|
carrier?: string;
|
|
1095
1107
|
serviceCode?: string;
|
|
1096
1108
|
estimatedDeliveryDays?: number;
|
|
@@ -1106,10 +1118,10 @@ export declare class CartsService {
|
|
|
1106
1118
|
rateTypeCode?: string | null;
|
|
1107
1119
|
rate?: number;
|
|
1108
1120
|
/**
|
|
1109
|
-
*
|
|
1121
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1110
1122
|
*/
|
|
1111
1123
|
amount?: number;
|
|
1112
|
-
currency?:
|
|
1124
|
+
currency?: CurrencyCode | null;
|
|
1113
1125
|
}>;
|
|
1114
1126
|
/**
|
|
1115
1127
|
* Arbitrary key-value metadata
|
|
@@ -1143,25 +1155,25 @@ export declare class CartsService {
|
|
|
1143
1155
|
customerId?: string | null;
|
|
1144
1156
|
customerEmail?: string | null;
|
|
1145
1157
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
1146
|
-
currency?:
|
|
1158
|
+
currency?: CurrencyCode;
|
|
1147
1159
|
/**
|
|
1148
|
-
*
|
|
1160
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1149
1161
|
*/
|
|
1150
1162
|
subtotal?: number;
|
|
1151
1163
|
/**
|
|
1152
|
-
*
|
|
1164
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1153
1165
|
*/
|
|
1154
1166
|
taxTotal?: number;
|
|
1155
1167
|
/**
|
|
1156
|
-
*
|
|
1168
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1157
1169
|
*/
|
|
1158
1170
|
discountTotal?: number;
|
|
1159
1171
|
/**
|
|
1160
|
-
*
|
|
1172
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1161
1173
|
*/
|
|
1162
1174
|
shippingTotal?: number;
|
|
1163
1175
|
/**
|
|
1164
|
-
*
|
|
1176
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1165
1177
|
*/
|
|
1166
1178
|
total?: number;
|
|
1167
1179
|
lineItems?: Array<{
|
|
@@ -1172,24 +1184,24 @@ export declare class CartsService {
|
|
|
1172
1184
|
name?: string;
|
|
1173
1185
|
description?: string | null;
|
|
1174
1186
|
/**
|
|
1175
|
-
*
|
|
1187
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1176
1188
|
*/
|
|
1177
1189
|
unitPrice?: number;
|
|
1178
1190
|
quantity?: number;
|
|
1179
1191
|
/**
|
|
1180
|
-
*
|
|
1192
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1181
1193
|
*/
|
|
1182
1194
|
subtotal?: number;
|
|
1183
1195
|
/**
|
|
1184
|
-
*
|
|
1196
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1185
1197
|
*/
|
|
1186
1198
|
taxAmount?: number;
|
|
1187
1199
|
/**
|
|
1188
|
-
*
|
|
1200
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1189
1201
|
*/
|
|
1190
1202
|
discountAmount?: number;
|
|
1191
1203
|
/**
|
|
1192
|
-
*
|
|
1204
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1193
1205
|
*/
|
|
1194
1206
|
total?: number;
|
|
1195
1207
|
/**
|
|
@@ -1208,7 +1220,7 @@ export declare class CartsService {
|
|
|
1208
1220
|
totalPayments?: number | null;
|
|
1209
1221
|
trialDays?: number;
|
|
1210
1222
|
/**
|
|
1211
|
-
*
|
|
1223
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1212
1224
|
*/
|
|
1213
1225
|
amount?: number | null;
|
|
1214
1226
|
count?: number | null;
|
|
@@ -1218,7 +1230,7 @@ export declare class CartsService {
|
|
|
1218
1230
|
intervalCount?: number | null;
|
|
1219
1231
|
}> | null;
|
|
1220
1232
|
/**
|
|
1221
|
-
*
|
|
1233
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1222
1234
|
*/
|
|
1223
1235
|
scheduleUnitTotal?: number | null;
|
|
1224
1236
|
} | null;
|
|
@@ -1254,10 +1266,10 @@ export declare class CartsService {
|
|
|
1254
1266
|
code?: string;
|
|
1255
1267
|
type?: 'percentage' | 'fixed_amount';
|
|
1256
1268
|
/**
|
|
1257
|
-
*
|
|
1269
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1258
1270
|
*/
|
|
1259
1271
|
amount?: number;
|
|
1260
|
-
currency?:
|
|
1272
|
+
currency?: CurrencyCode;
|
|
1261
1273
|
freeShipping?: boolean;
|
|
1262
1274
|
validUntil?: string | null;
|
|
1263
1275
|
snapshotHash?: string;
|
|
@@ -1266,10 +1278,10 @@ export declare class CartsService {
|
|
|
1266
1278
|
methodId?: string;
|
|
1267
1279
|
displayName?: string;
|
|
1268
1280
|
/**
|
|
1269
|
-
*
|
|
1281
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1270
1282
|
*/
|
|
1271
1283
|
rateAmount?: number;
|
|
1272
|
-
currency?:
|
|
1284
|
+
currency?: CurrencyCode;
|
|
1273
1285
|
carrier?: string;
|
|
1274
1286
|
serviceCode?: string;
|
|
1275
1287
|
estimatedDeliveryDays?: number;
|
|
@@ -1285,10 +1297,10 @@ export declare class CartsService {
|
|
|
1285
1297
|
rateTypeCode?: string | null;
|
|
1286
1298
|
rate?: number;
|
|
1287
1299
|
/**
|
|
1288
|
-
*
|
|
1300
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1289
1301
|
*/
|
|
1290
1302
|
amount?: number;
|
|
1291
|
-
currency?:
|
|
1303
|
+
currency?: CurrencyCode | null;
|
|
1292
1304
|
}>;
|
|
1293
1305
|
/**
|
|
1294
1306
|
* Arbitrary key-value metadata
|
|
@@ -1319,9 +1331,12 @@ export declare class CartsService {
|
|
|
1319
1331
|
methodId: string;
|
|
1320
1332
|
displayName: string;
|
|
1321
1333
|
/**
|
|
1322
|
-
*
|
|
1334
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1323
1335
|
*/
|
|
1324
1336
|
rateAmount: number;
|
|
1337
|
+
/**
|
|
1338
|
+
* Must be the cart's currency on every cart, else `422 shipping_currency_unsupported`.
|
|
1339
|
+
*/
|
|
1325
1340
|
currency?: string;
|
|
1326
1341
|
carrier?: string;
|
|
1327
1342
|
serviceCode?: string;
|
|
@@ -1334,25 +1349,25 @@ export declare class CartsService {
|
|
|
1334
1349
|
customerId?: string | null;
|
|
1335
1350
|
customerEmail?: string | null;
|
|
1336
1351
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
1337
|
-
currency?:
|
|
1352
|
+
currency?: CurrencyCode;
|
|
1338
1353
|
/**
|
|
1339
|
-
*
|
|
1354
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1340
1355
|
*/
|
|
1341
1356
|
subtotal?: number;
|
|
1342
1357
|
/**
|
|
1343
|
-
*
|
|
1358
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1344
1359
|
*/
|
|
1345
1360
|
taxTotal?: number;
|
|
1346
1361
|
/**
|
|
1347
|
-
*
|
|
1362
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1348
1363
|
*/
|
|
1349
1364
|
discountTotal?: number;
|
|
1350
1365
|
/**
|
|
1351
|
-
*
|
|
1366
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1352
1367
|
*/
|
|
1353
1368
|
shippingTotal?: number;
|
|
1354
1369
|
/**
|
|
1355
|
-
*
|
|
1370
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1356
1371
|
*/
|
|
1357
1372
|
total?: number;
|
|
1358
1373
|
lineItems?: Array<{
|
|
@@ -1363,24 +1378,24 @@ export declare class CartsService {
|
|
|
1363
1378
|
name?: string;
|
|
1364
1379
|
description?: string | null;
|
|
1365
1380
|
/**
|
|
1366
|
-
*
|
|
1381
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1367
1382
|
*/
|
|
1368
1383
|
unitPrice?: number;
|
|
1369
1384
|
quantity?: number;
|
|
1370
1385
|
/**
|
|
1371
|
-
*
|
|
1386
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1372
1387
|
*/
|
|
1373
1388
|
subtotal?: number;
|
|
1374
1389
|
/**
|
|
1375
|
-
*
|
|
1390
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1376
1391
|
*/
|
|
1377
1392
|
taxAmount?: number;
|
|
1378
1393
|
/**
|
|
1379
|
-
*
|
|
1394
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1380
1395
|
*/
|
|
1381
1396
|
discountAmount?: number;
|
|
1382
1397
|
/**
|
|
1383
|
-
*
|
|
1398
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1384
1399
|
*/
|
|
1385
1400
|
total?: number;
|
|
1386
1401
|
/**
|
|
@@ -1399,7 +1414,7 @@ export declare class CartsService {
|
|
|
1399
1414
|
totalPayments?: number | null;
|
|
1400
1415
|
trialDays?: number;
|
|
1401
1416
|
/**
|
|
1402
|
-
*
|
|
1417
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1403
1418
|
*/
|
|
1404
1419
|
amount?: number | null;
|
|
1405
1420
|
count?: number | null;
|
|
@@ -1409,7 +1424,7 @@ export declare class CartsService {
|
|
|
1409
1424
|
intervalCount?: number | null;
|
|
1410
1425
|
}> | null;
|
|
1411
1426
|
/**
|
|
1412
|
-
*
|
|
1427
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1413
1428
|
*/
|
|
1414
1429
|
scheduleUnitTotal?: number | null;
|
|
1415
1430
|
} | null;
|
|
@@ -1445,10 +1460,10 @@ export declare class CartsService {
|
|
|
1445
1460
|
code?: string;
|
|
1446
1461
|
type?: 'percentage' | 'fixed_amount';
|
|
1447
1462
|
/**
|
|
1448
|
-
*
|
|
1463
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1449
1464
|
*/
|
|
1450
1465
|
amount?: number;
|
|
1451
|
-
currency?:
|
|
1466
|
+
currency?: CurrencyCode;
|
|
1452
1467
|
freeShipping?: boolean;
|
|
1453
1468
|
validUntil?: string | null;
|
|
1454
1469
|
snapshotHash?: string;
|
|
@@ -1457,10 +1472,10 @@ export declare class CartsService {
|
|
|
1457
1472
|
methodId?: string;
|
|
1458
1473
|
displayName?: string;
|
|
1459
1474
|
/**
|
|
1460
|
-
*
|
|
1475
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1461
1476
|
*/
|
|
1462
1477
|
rateAmount?: number;
|
|
1463
|
-
currency?:
|
|
1478
|
+
currency?: CurrencyCode;
|
|
1464
1479
|
carrier?: string;
|
|
1465
1480
|
serviceCode?: string;
|
|
1466
1481
|
estimatedDeliveryDays?: number;
|
|
@@ -1476,10 +1491,10 @@ export declare class CartsService {
|
|
|
1476
1491
|
rateTypeCode?: string | null;
|
|
1477
1492
|
rate?: number;
|
|
1478
1493
|
/**
|
|
1479
|
-
*
|
|
1494
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1480
1495
|
*/
|
|
1481
1496
|
amount?: number;
|
|
1482
|
-
currency?:
|
|
1497
|
+
currency?: CurrencyCode | null;
|
|
1483
1498
|
}>;
|
|
1484
1499
|
/**
|
|
1485
1500
|
* Arbitrary key-value metadata
|
|
@@ -1513,25 +1528,25 @@ export declare class CartsService {
|
|
|
1513
1528
|
customerId?: string | null;
|
|
1514
1529
|
customerEmail?: string | null;
|
|
1515
1530
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
1516
|
-
currency?:
|
|
1531
|
+
currency?: CurrencyCode;
|
|
1517
1532
|
/**
|
|
1518
|
-
*
|
|
1533
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1519
1534
|
*/
|
|
1520
1535
|
subtotal?: number;
|
|
1521
1536
|
/**
|
|
1522
|
-
*
|
|
1537
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1523
1538
|
*/
|
|
1524
1539
|
taxTotal?: number;
|
|
1525
1540
|
/**
|
|
1526
|
-
*
|
|
1541
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1527
1542
|
*/
|
|
1528
1543
|
discountTotal?: number;
|
|
1529
1544
|
/**
|
|
1530
|
-
*
|
|
1545
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1531
1546
|
*/
|
|
1532
1547
|
shippingTotal?: number;
|
|
1533
1548
|
/**
|
|
1534
|
-
*
|
|
1549
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1535
1550
|
*/
|
|
1536
1551
|
total?: number;
|
|
1537
1552
|
lineItems?: Array<{
|
|
@@ -1542,24 +1557,24 @@ export declare class CartsService {
|
|
|
1542
1557
|
name?: string;
|
|
1543
1558
|
description?: string | null;
|
|
1544
1559
|
/**
|
|
1545
|
-
*
|
|
1560
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1546
1561
|
*/
|
|
1547
1562
|
unitPrice?: number;
|
|
1548
1563
|
quantity?: number;
|
|
1549
1564
|
/**
|
|
1550
|
-
*
|
|
1565
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1551
1566
|
*/
|
|
1552
1567
|
subtotal?: number;
|
|
1553
1568
|
/**
|
|
1554
|
-
*
|
|
1569
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1555
1570
|
*/
|
|
1556
1571
|
taxAmount?: number;
|
|
1557
1572
|
/**
|
|
1558
|
-
*
|
|
1573
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1559
1574
|
*/
|
|
1560
1575
|
discountAmount?: number;
|
|
1561
1576
|
/**
|
|
1562
|
-
*
|
|
1577
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1563
1578
|
*/
|
|
1564
1579
|
total?: number;
|
|
1565
1580
|
/**
|
|
@@ -1578,7 +1593,7 @@ export declare class CartsService {
|
|
|
1578
1593
|
totalPayments?: number | null;
|
|
1579
1594
|
trialDays?: number;
|
|
1580
1595
|
/**
|
|
1581
|
-
*
|
|
1596
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1582
1597
|
*/
|
|
1583
1598
|
amount?: number | null;
|
|
1584
1599
|
count?: number | null;
|
|
@@ -1588,7 +1603,7 @@ export declare class CartsService {
|
|
|
1588
1603
|
intervalCount?: number | null;
|
|
1589
1604
|
}> | null;
|
|
1590
1605
|
/**
|
|
1591
|
-
*
|
|
1606
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1592
1607
|
*/
|
|
1593
1608
|
scheduleUnitTotal?: number | null;
|
|
1594
1609
|
} | null;
|
|
@@ -1624,10 +1639,10 @@ export declare class CartsService {
|
|
|
1624
1639
|
code?: string;
|
|
1625
1640
|
type?: 'percentage' | 'fixed_amount';
|
|
1626
1641
|
/**
|
|
1627
|
-
*
|
|
1642
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1628
1643
|
*/
|
|
1629
1644
|
amount?: number;
|
|
1630
|
-
currency?:
|
|
1645
|
+
currency?: CurrencyCode;
|
|
1631
1646
|
freeShipping?: boolean;
|
|
1632
1647
|
validUntil?: string | null;
|
|
1633
1648
|
snapshotHash?: string;
|
|
@@ -1636,10 +1651,10 @@ export declare class CartsService {
|
|
|
1636
1651
|
methodId?: string;
|
|
1637
1652
|
displayName?: string;
|
|
1638
1653
|
/**
|
|
1639
|
-
*
|
|
1654
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1640
1655
|
*/
|
|
1641
1656
|
rateAmount?: number;
|
|
1642
|
-
currency?:
|
|
1657
|
+
currency?: CurrencyCode;
|
|
1643
1658
|
carrier?: string;
|
|
1644
1659
|
serviceCode?: string;
|
|
1645
1660
|
estimatedDeliveryDays?: number;
|
|
@@ -1655,10 +1670,10 @@ export declare class CartsService {
|
|
|
1655
1670
|
rateTypeCode?: string | null;
|
|
1656
1671
|
rate?: number;
|
|
1657
1672
|
/**
|
|
1658
|
-
*
|
|
1673
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1659
1674
|
*/
|
|
1660
1675
|
amount?: number;
|
|
1661
|
-
currency?:
|
|
1676
|
+
currency?: CurrencyCode | null;
|
|
1662
1677
|
}>;
|
|
1663
1678
|
/**
|
|
1664
1679
|
* Arbitrary key-value metadata
|
|
@@ -1703,25 +1718,25 @@ export declare class CartsService {
|
|
|
1703
1718
|
customerId?: string | null;
|
|
1704
1719
|
customerEmail?: string | null;
|
|
1705
1720
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
1706
|
-
currency?:
|
|
1721
|
+
currency?: CurrencyCode;
|
|
1707
1722
|
/**
|
|
1708
|
-
*
|
|
1723
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1709
1724
|
*/
|
|
1710
1725
|
subtotal?: number;
|
|
1711
1726
|
/**
|
|
1712
|
-
*
|
|
1727
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1713
1728
|
*/
|
|
1714
1729
|
taxTotal?: number;
|
|
1715
1730
|
/**
|
|
1716
|
-
*
|
|
1731
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1717
1732
|
*/
|
|
1718
1733
|
discountTotal?: number;
|
|
1719
1734
|
/**
|
|
1720
|
-
*
|
|
1735
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1721
1736
|
*/
|
|
1722
1737
|
shippingTotal?: number;
|
|
1723
1738
|
/**
|
|
1724
|
-
*
|
|
1739
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1725
1740
|
*/
|
|
1726
1741
|
total?: number;
|
|
1727
1742
|
lineItems?: Array<{
|
|
@@ -1732,24 +1747,24 @@ export declare class CartsService {
|
|
|
1732
1747
|
name?: string;
|
|
1733
1748
|
description?: string | null;
|
|
1734
1749
|
/**
|
|
1735
|
-
*
|
|
1750
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1736
1751
|
*/
|
|
1737
1752
|
unitPrice?: number;
|
|
1738
1753
|
quantity?: number;
|
|
1739
1754
|
/**
|
|
1740
|
-
*
|
|
1755
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1741
1756
|
*/
|
|
1742
1757
|
subtotal?: number;
|
|
1743
1758
|
/**
|
|
1744
|
-
*
|
|
1759
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1745
1760
|
*/
|
|
1746
1761
|
taxAmount?: number;
|
|
1747
1762
|
/**
|
|
1748
|
-
*
|
|
1763
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1749
1764
|
*/
|
|
1750
1765
|
discountAmount?: number;
|
|
1751
1766
|
/**
|
|
1752
|
-
*
|
|
1767
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1753
1768
|
*/
|
|
1754
1769
|
total?: number;
|
|
1755
1770
|
/**
|
|
@@ -1768,7 +1783,7 @@ export declare class CartsService {
|
|
|
1768
1783
|
totalPayments?: number | null;
|
|
1769
1784
|
trialDays?: number;
|
|
1770
1785
|
/**
|
|
1771
|
-
*
|
|
1786
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1772
1787
|
*/
|
|
1773
1788
|
amount?: number | null;
|
|
1774
1789
|
count?: number | null;
|
|
@@ -1778,7 +1793,7 @@ export declare class CartsService {
|
|
|
1778
1793
|
intervalCount?: number | null;
|
|
1779
1794
|
}> | null;
|
|
1780
1795
|
/**
|
|
1781
|
-
*
|
|
1796
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1782
1797
|
*/
|
|
1783
1798
|
scheduleUnitTotal?: number | null;
|
|
1784
1799
|
} | null;
|
|
@@ -1814,10 +1829,10 @@ export declare class CartsService {
|
|
|
1814
1829
|
code?: string;
|
|
1815
1830
|
type?: 'percentage' | 'fixed_amount';
|
|
1816
1831
|
/**
|
|
1817
|
-
*
|
|
1832
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1818
1833
|
*/
|
|
1819
1834
|
amount?: number;
|
|
1820
|
-
currency?:
|
|
1835
|
+
currency?: CurrencyCode;
|
|
1821
1836
|
freeShipping?: boolean;
|
|
1822
1837
|
validUntil?: string | null;
|
|
1823
1838
|
snapshotHash?: string;
|
|
@@ -1826,10 +1841,10 @@ export declare class CartsService {
|
|
|
1826
1841
|
methodId?: string;
|
|
1827
1842
|
displayName?: string;
|
|
1828
1843
|
/**
|
|
1829
|
-
*
|
|
1844
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1830
1845
|
*/
|
|
1831
1846
|
rateAmount?: number;
|
|
1832
|
-
currency?:
|
|
1847
|
+
currency?: CurrencyCode;
|
|
1833
1848
|
carrier?: string;
|
|
1834
1849
|
serviceCode?: string;
|
|
1835
1850
|
estimatedDeliveryDays?: number;
|
|
@@ -1845,10 +1860,10 @@ export declare class CartsService {
|
|
|
1845
1860
|
rateTypeCode?: string | null;
|
|
1846
1861
|
rate?: number;
|
|
1847
1862
|
/**
|
|
1848
|
-
*
|
|
1863
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1849
1864
|
*/
|
|
1850
1865
|
amount?: number;
|
|
1851
|
-
currency?:
|
|
1866
|
+
currency?: CurrencyCode | null;
|
|
1852
1867
|
}>;
|
|
1853
1868
|
/**
|
|
1854
1869
|
* Arbitrary key-value metadata
|
|
@@ -1882,25 +1897,25 @@ export declare class CartsService {
|
|
|
1882
1897
|
customerId?: string | null;
|
|
1883
1898
|
customerEmail?: string | null;
|
|
1884
1899
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
1885
|
-
currency?:
|
|
1900
|
+
currency?: CurrencyCode;
|
|
1886
1901
|
/**
|
|
1887
|
-
*
|
|
1902
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1888
1903
|
*/
|
|
1889
1904
|
subtotal?: number;
|
|
1890
1905
|
/**
|
|
1891
|
-
*
|
|
1906
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1892
1907
|
*/
|
|
1893
1908
|
taxTotal?: number;
|
|
1894
1909
|
/**
|
|
1895
|
-
*
|
|
1910
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1896
1911
|
*/
|
|
1897
1912
|
discountTotal?: number;
|
|
1898
1913
|
/**
|
|
1899
|
-
*
|
|
1914
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1900
1915
|
*/
|
|
1901
1916
|
shippingTotal?: number;
|
|
1902
1917
|
/**
|
|
1903
|
-
*
|
|
1918
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1904
1919
|
*/
|
|
1905
1920
|
total?: number;
|
|
1906
1921
|
lineItems?: Array<{
|
|
@@ -1911,24 +1926,24 @@ export declare class CartsService {
|
|
|
1911
1926
|
name?: string;
|
|
1912
1927
|
description?: string | null;
|
|
1913
1928
|
/**
|
|
1914
|
-
*
|
|
1929
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1915
1930
|
*/
|
|
1916
1931
|
unitPrice?: number;
|
|
1917
1932
|
quantity?: number;
|
|
1918
1933
|
/**
|
|
1919
|
-
*
|
|
1934
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1920
1935
|
*/
|
|
1921
1936
|
subtotal?: number;
|
|
1922
1937
|
/**
|
|
1923
|
-
*
|
|
1938
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1924
1939
|
*/
|
|
1925
1940
|
taxAmount?: number;
|
|
1926
1941
|
/**
|
|
1927
|
-
*
|
|
1942
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1928
1943
|
*/
|
|
1929
1944
|
discountAmount?: number;
|
|
1930
1945
|
/**
|
|
1931
|
-
*
|
|
1946
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1932
1947
|
*/
|
|
1933
1948
|
total?: number;
|
|
1934
1949
|
/**
|
|
@@ -1947,7 +1962,7 @@ export declare class CartsService {
|
|
|
1947
1962
|
totalPayments?: number | null;
|
|
1948
1963
|
trialDays?: number;
|
|
1949
1964
|
/**
|
|
1950
|
-
*
|
|
1965
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1951
1966
|
*/
|
|
1952
1967
|
amount?: number | null;
|
|
1953
1968
|
count?: number | null;
|
|
@@ -1957,7 +1972,7 @@ export declare class CartsService {
|
|
|
1957
1972
|
intervalCount?: number | null;
|
|
1958
1973
|
}> | null;
|
|
1959
1974
|
/**
|
|
1960
|
-
*
|
|
1975
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1961
1976
|
*/
|
|
1962
1977
|
scheduleUnitTotal?: number | null;
|
|
1963
1978
|
} | null;
|
|
@@ -1993,10 +2008,10 @@ export declare class CartsService {
|
|
|
1993
2008
|
code?: string;
|
|
1994
2009
|
type?: 'percentage' | 'fixed_amount';
|
|
1995
2010
|
/**
|
|
1996
|
-
*
|
|
2011
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1997
2012
|
*/
|
|
1998
2013
|
amount?: number;
|
|
1999
|
-
currency?:
|
|
2014
|
+
currency?: CurrencyCode;
|
|
2000
2015
|
freeShipping?: boolean;
|
|
2001
2016
|
validUntil?: string | null;
|
|
2002
2017
|
snapshotHash?: string;
|
|
@@ -2005,10 +2020,10 @@ export declare class CartsService {
|
|
|
2005
2020
|
methodId?: string;
|
|
2006
2021
|
displayName?: string;
|
|
2007
2022
|
/**
|
|
2008
|
-
*
|
|
2023
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2009
2024
|
*/
|
|
2010
2025
|
rateAmount?: number;
|
|
2011
|
-
currency?:
|
|
2026
|
+
currency?: CurrencyCode;
|
|
2012
2027
|
carrier?: string;
|
|
2013
2028
|
serviceCode?: string;
|
|
2014
2029
|
estimatedDeliveryDays?: number;
|
|
@@ -2024,10 +2039,10 @@ export declare class CartsService {
|
|
|
2024
2039
|
rateTypeCode?: string | null;
|
|
2025
2040
|
rate?: number;
|
|
2026
2041
|
/**
|
|
2027
|
-
*
|
|
2042
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2028
2043
|
*/
|
|
2029
2044
|
amount?: number;
|
|
2030
|
-
currency?:
|
|
2045
|
+
currency?: CurrencyCode | null;
|
|
2031
2046
|
}>;
|
|
2032
2047
|
/**
|
|
2033
2048
|
* Arbitrary key-value metadata
|