@usethrottle/api-client 5.18.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.
Files changed (48) hide show
  1. package/README.md +7 -0
  2. package/dist/__tests__/currency-code-types.test.d.ts +2 -0
  3. package/dist/__tests__/currency-code-types.test.d.ts.map +1 -0
  4. package/dist/__tests__/currency-code-types.test.js +37 -0
  5. package/dist/__tests__/currency-code-types.test.js.map +1 -0
  6. package/dist/__tests__/money-reexports.test.d.ts +2 -0
  7. package/dist/__tests__/money-reexports.test.d.ts.map +1 -0
  8. package/dist/__tests__/money-reexports.test.js +33 -0
  9. package/dist/__tests__/money-reexports.test.js.map +1 -0
  10. package/dist/generated/services/ApplicationsService.d.ts +5 -4
  11. package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
  12. package/dist/generated/services/ApplicationsService.js.map +1 -1
  13. package/dist/generated/services/CartsService.d.ts +203 -194
  14. package/dist/generated/services/CartsService.d.ts.map +1 -1
  15. package/dist/generated/services/CartsService.js.map +1 -1
  16. package/dist/generated/services/CheckoutSessionsService.d.ts +1 -1
  17. package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
  18. package/dist/generated/services/DefaultService.d.ts +35 -3
  19. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  20. package/dist/generated/services/DefaultService.js +32 -0
  21. package/dist/generated/services/DefaultService.js.map +1 -1
  22. package/dist/generated/services/DiscountsService.d.ts +40 -7
  23. package/dist/generated/services/DiscountsService.d.ts.map +1 -1
  24. package/dist/generated/services/DiscountsService.js.map +1 -1
  25. package/dist/generated/services/OrdersService.d.ts +205 -204
  26. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  27. package/dist/generated/services/OrdersService.js.map +1 -1
  28. package/dist/generated/services/PaymentsService.d.ts +25 -24
  29. package/dist/generated/services/PaymentsService.d.ts.map +1 -1
  30. package/dist/generated/services/PaymentsService.js +1 -1
  31. package/dist/generated/services/PaymentsService.js.map +1 -1
  32. package/dist/generated/services/QuotesService.d.ts +40 -15
  33. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  34. package/dist/generated/services/QuotesService.js.map +1 -1
  35. package/dist/generated/services/ReturnsService.d.ts +17 -0
  36. package/dist/generated/services/ReturnsService.d.ts.map +1 -1
  37. package/dist/generated/services/ReturnsService.js.map +1 -1
  38. package/dist/generated/services/StoresService.d.ts +5 -4
  39. package/dist/generated/services/StoresService.d.ts.map +1 -1
  40. package/dist/generated/services/StoresService.js.map +1 -1
  41. package/dist/generated/services/SubscriptionsService.d.ts +27 -26
  42. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  43. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  44. package/dist/index.d.ts +3 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +3 -0
  47. package/dist/index.js.map +1 -1
  48. 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
@@ -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?: string;
47
+ currency?: CurrencyCode;
47
48
  /**
48
- * Amount in cents (e.g. 1999 = $19.99)
49
+ * Integer minor units of `currency` (ISO 4217 exponent).
49
50
  */
50
51
  subtotal?: number;
51
52
  /**
52
- * Amount in cents (e.g. 1999 = $19.99)
53
+ * Integer minor units of `currency` (ISO 4217 exponent).
53
54
  */
54
55
  taxTotal?: number;
55
56
  /**
56
- * Amount in cents (e.g. 1999 = $19.99)
57
+ * Integer minor units of `currency` (ISO 4217 exponent).
57
58
  */
58
59
  discountTotal?: number;
59
60
  /**
60
- * Amount in cents (e.g. 1999 = $19.99)
61
+ * Integer minor units of `currency` (ISO 4217 exponent).
61
62
  */
62
63
  shippingTotal?: number;
63
64
  /**
64
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
76
+ * Integer minor units of `currency` (ISO 4217 exponent).
76
77
  */
77
78
  unitPrice?: number;
78
79
  quantity?: number;
79
80
  /**
80
- * Amount in cents (e.g. 1999 = $19.99)
81
+ * Integer minor units of `currency` (ISO 4217 exponent).
81
82
  */
82
83
  subtotal?: number;
83
84
  /**
84
- * Amount in cents (e.g. 1999 = $19.99)
85
+ * Integer minor units of `currency` (ISO 4217 exponent).
85
86
  */
86
87
  taxAmount?: number;
87
88
  /**
88
- * Amount in cents (e.g. 1999 = $19.99)
89
+ * Integer minor units of `currency` (ISO 4217 exponent).
89
90
  */
90
91
  discountAmount?: number;
91
92
  /**
92
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
158
+ * Integer minor units of `currency` (ISO 4217 exponent).
158
159
  */
159
160
  amount?: number;
160
- currency?: string;
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
- * Amount in cents (e.g. 1999 = $19.99)
170
+ * Integer minor units of `currency` (ISO 4217 exponent).
170
171
  */
171
172
  rateAmount?: number;
172
- currency?: string;
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
- * Amount in cents (e.g. 1999 = $19.99)
189
+ * Integer minor units of `currency` (ISO 4217 exponent).
189
190
  */
190
191
  amount?: number;
191
- currency?: string | null;
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?: string;
226
+ currency?: CurrencyCode;
226
227
  /**
227
- * Amount in cents (e.g. 1999 = $19.99)
228
+ * Integer minor units of `currency` (ISO 4217 exponent).
228
229
  */
229
230
  subtotal?: number;
230
231
  /**
231
- * Amount in cents (e.g. 1999 = $19.99)
232
+ * Integer minor units of `currency` (ISO 4217 exponent).
232
233
  */
233
234
  taxTotal?: number;
234
235
  /**
235
- * Amount in cents (e.g. 1999 = $19.99)
236
+ * Integer minor units of `currency` (ISO 4217 exponent).
236
237
  */
237
238
  discountTotal?: number;
238
239
  /**
239
- * Amount in cents (e.g. 1999 = $19.99)
240
+ * Integer minor units of `currency` (ISO 4217 exponent).
240
241
  */
241
242
  shippingTotal?: number;
242
243
  /**
243
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
255
+ * Integer minor units of `currency` (ISO 4217 exponent).
255
256
  */
256
257
  unitPrice?: number;
257
258
  quantity?: number;
258
259
  /**
259
- * Amount in cents (e.g. 1999 = $19.99)
260
+ * Integer minor units of `currency` (ISO 4217 exponent).
260
261
  */
261
262
  subtotal?: number;
262
263
  /**
263
- * Amount in cents (e.g. 1999 = $19.99)
264
+ * Integer minor units of `currency` (ISO 4217 exponent).
264
265
  */
265
266
  taxAmount?: number;
266
267
  /**
267
- * Amount in cents (e.g. 1999 = $19.99)
268
+ * Integer minor units of `currency` (ISO 4217 exponent).
268
269
  */
269
270
  discountAmount?: number;
270
271
  /**
271
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
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
- * Amount in cents (e.g. 1999 = $19.99)
337
+ * Integer minor units of `currency` (ISO 4217 exponent).
337
338
  */
338
339
  amount?: number;
339
- currency?: string;
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
- * Amount in cents (e.g. 1999 = $19.99)
349
+ * Integer minor units of `currency` (ISO 4217 exponent).
349
350
  */
350
351
  rateAmount?: number;
351
- currency?: string;
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
- * Amount in cents (e.g. 1999 = $19.99)
368
+ * Integer minor units of `currency` (ISO 4217 exponent).
368
369
  */
369
370
  amount?: number;
370
- currency?: string | null;
371
+ currency?: CurrencyCode | null;
371
372
  }>;
372
373
  /**
373
374
  * Arbitrary key-value metadata
@@ -417,25 +418,25 @@ export declare class CartsService {
417
418
  customerId?: string | null;
418
419
  customerEmail?: string | null;
419
420
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
420
- currency?: string;
421
+ currency?: CurrencyCode;
421
422
  /**
422
- * Amount in cents (e.g. 1999 = $19.99)
423
+ * Integer minor units of `currency` (ISO 4217 exponent).
423
424
  */
424
425
  subtotal?: number;
425
426
  /**
426
- * Amount in cents (e.g. 1999 = $19.99)
427
+ * Integer minor units of `currency` (ISO 4217 exponent).
427
428
  */
428
429
  taxTotal?: number;
429
430
  /**
430
- * Amount in cents (e.g. 1999 = $19.99)
431
+ * Integer minor units of `currency` (ISO 4217 exponent).
431
432
  */
432
433
  discountTotal?: number;
433
434
  /**
434
- * Amount in cents (e.g. 1999 = $19.99)
435
+ * Integer minor units of `currency` (ISO 4217 exponent).
435
436
  */
436
437
  shippingTotal?: number;
437
438
  /**
438
- * Amount in cents (e.g. 1999 = $19.99)
439
+ * Integer minor units of `currency` (ISO 4217 exponent).
439
440
  */
440
441
  total?: number;
441
442
  lineItems?: Array<{
@@ -446,24 +447,24 @@ export declare class CartsService {
446
447
  name?: string;
447
448
  description?: string | null;
448
449
  /**
449
- * Amount in cents (e.g. 1999 = $19.99)
450
+ * Integer minor units of `currency` (ISO 4217 exponent).
450
451
  */
451
452
  unitPrice?: number;
452
453
  quantity?: number;
453
454
  /**
454
- * Amount in cents (e.g. 1999 = $19.99)
455
+ * Integer minor units of `currency` (ISO 4217 exponent).
455
456
  */
456
457
  subtotal?: number;
457
458
  /**
458
- * Amount in cents (e.g. 1999 = $19.99)
459
+ * Integer minor units of `currency` (ISO 4217 exponent).
459
460
  */
460
461
  taxAmount?: number;
461
462
  /**
462
- * Amount in cents (e.g. 1999 = $19.99)
463
+ * Integer minor units of `currency` (ISO 4217 exponent).
463
464
  */
464
465
  discountAmount?: number;
465
466
  /**
466
- * Amount in cents (e.g. 1999 = $19.99)
467
+ * Integer minor units of `currency` (ISO 4217 exponent).
467
468
  */
468
469
  total?: number;
469
470
  /**
@@ -482,7 +483,7 @@ export declare class CartsService {
482
483
  totalPayments?: number | null;
483
484
  trialDays?: number;
484
485
  /**
485
- * Amount in cents (e.g. 1999 = $19.99)
486
+ * Integer minor units of `currency` (ISO 4217 exponent).
486
487
  */
487
488
  amount?: number | null;
488
489
  count?: number | null;
@@ -492,7 +493,7 @@ export declare class CartsService {
492
493
  intervalCount?: number | null;
493
494
  }> | null;
494
495
  /**
495
- * Amount in cents (e.g. 1999 = $19.99)
496
+ * Integer minor units of `currency` (ISO 4217 exponent).
496
497
  */
497
498
  scheduleUnitTotal?: number | null;
498
499
  } | null;
@@ -528,10 +529,10 @@ export declare class CartsService {
528
529
  code?: string;
529
530
  type?: 'percentage' | 'fixed_amount';
530
531
  /**
531
- * Amount in cents (e.g. 1999 = $19.99)
532
+ * Integer minor units of `currency` (ISO 4217 exponent).
532
533
  */
533
534
  amount?: number;
534
- currency?: string;
535
+ currency?: CurrencyCode;
535
536
  freeShipping?: boolean;
536
537
  validUntil?: string | null;
537
538
  snapshotHash?: string;
@@ -540,10 +541,10 @@ export declare class CartsService {
540
541
  methodId?: string;
541
542
  displayName?: string;
542
543
  /**
543
- * Amount in cents (e.g. 1999 = $19.99)
544
+ * Integer minor units of `currency` (ISO 4217 exponent).
544
545
  */
545
546
  rateAmount?: number;
546
- currency?: string;
547
+ currency?: CurrencyCode;
547
548
  carrier?: string;
548
549
  serviceCode?: string;
549
550
  estimatedDeliveryDays?: number;
@@ -559,10 +560,10 @@ export declare class CartsService {
559
560
  rateTypeCode?: string | null;
560
561
  rate?: number;
561
562
  /**
562
- * Amount in cents (e.g. 1999 = $19.99)
563
+ * Integer minor units of `currency` (ISO 4217 exponent).
563
564
  */
564
565
  amount?: number;
565
- currency?: string | null;
566
+ currency?: CurrencyCode | null;
566
567
  }>;
567
568
  /**
568
569
  * Arbitrary key-value metadata
@@ -595,16 +596,16 @@ export declare class CartsService {
595
596
  name?: string;
596
597
  description?: string;
597
598
  /**
598
- * Amount in cents (e.g. 1999 = $19.99)
599
+ * Integer minor units of `currency` (ISO 4217 exponent).
599
600
  */
600
601
  unitPrice?: number;
601
602
  quantity?: number;
602
603
  /**
603
- * Amount in cents (e.g. 1999 = $19.99)
604
+ * Integer minor units of `currency` (ISO 4217 exponent).
604
605
  */
605
606
  taxAmount?: number;
606
607
  /**
607
- * Amount in cents (e.g. 1999 = $19.99)
608
+ * Integer minor units of `currency` (ISO 4217 exponent).
608
609
  */
609
610
  discountAmount?: number;
610
611
  /**
@@ -646,24 +647,24 @@ export declare class CartsService {
646
647
  name?: string;
647
648
  description?: string | null;
648
649
  /**
649
- * Amount in cents (e.g. 1999 = $19.99)
650
+ * Integer minor units of `currency` (ISO 4217 exponent).
650
651
  */
651
652
  unitPrice?: number;
652
653
  quantity?: number;
653
654
  /**
654
- * Amount in cents (e.g. 1999 = $19.99)
655
+ * Integer minor units of `currency` (ISO 4217 exponent).
655
656
  */
656
657
  subtotal?: number;
657
658
  /**
658
- * Amount in cents (e.g. 1999 = $19.99)
659
+ * Integer minor units of `currency` (ISO 4217 exponent).
659
660
  */
660
661
  taxAmount?: number;
661
662
  /**
662
- * Amount in cents (e.g. 1999 = $19.99)
663
+ * Integer minor units of `currency` (ISO 4217 exponent).
663
664
  */
664
665
  discountAmount?: number;
665
666
  /**
666
- * Amount in cents (e.g. 1999 = $19.99)
667
+ * Integer minor units of `currency` (ISO 4217 exponent).
667
668
  */
668
669
  total?: number;
669
670
  /**
@@ -682,7 +683,7 @@ export declare class CartsService {
682
683
  totalPayments?: number | null;
683
684
  trialDays?: number;
684
685
  /**
685
- * Amount in cents (e.g. 1999 = $19.99)
686
+ * Integer minor units of `currency` (ISO 4217 exponent).
686
687
  */
687
688
  amount?: number | null;
688
689
  count?: number | null;
@@ -692,7 +693,7 @@ export declare class CartsService {
692
693
  intervalCount?: number | null;
693
694
  }> | null;
694
695
  /**
695
- * Amount in cents (e.g. 1999 = $19.99)
696
+ * Integer minor units of `currency` (ISO 4217 exponent).
696
697
  */
697
698
  scheduleUnitTotal?: number | null;
698
699
  } | null;
@@ -706,6 +707,10 @@ export declare class CartsService {
706
707
  * Arbitrary key-value metadata
707
708
  */
708
709
  metadata?: Record<string, any>;
710
+ /**
711
+ * The cart's currency; the line's amounts are minor units of it
712
+ */
713
+ currency?: CurrencyCode;
709
714
  };
710
715
  meta?: {
711
716
  /**
@@ -730,15 +735,15 @@ export declare class CartsService {
730
735
  static patchApiV1CartsItems(cartId: string, id: string, requestBody: {
731
736
  quantity?: number;
732
737
  /**
733
- * Amount in cents (e.g. 1999 = $19.99)
738
+ * Integer minor units of `currency` (ISO 4217 exponent).
734
739
  */
735
740
  unitPrice?: number;
736
741
  /**
737
- * Amount in cents (e.g. 1999 = $19.99)
742
+ * Integer minor units of `currency` (ISO 4217 exponent).
738
743
  */
739
744
  taxAmount?: number;
740
745
  /**
741
- * Amount in cents (e.g. 1999 = $19.99)
746
+ * Integer minor units of `currency` (ISO 4217 exponent).
742
747
  */
743
748
  discountAmount?: number;
744
749
  /**
@@ -754,24 +759,24 @@ export declare class CartsService {
754
759
  name?: string;
755
760
  description?: string | null;
756
761
  /**
757
- * Amount in cents (e.g. 1999 = $19.99)
762
+ * Integer minor units of `currency` (ISO 4217 exponent).
758
763
  */
759
764
  unitPrice?: number;
760
765
  quantity?: number;
761
766
  /**
762
- * Amount in cents (e.g. 1999 = $19.99)
767
+ * Integer minor units of `currency` (ISO 4217 exponent).
763
768
  */
764
769
  subtotal?: number;
765
770
  /**
766
- * Amount in cents (e.g. 1999 = $19.99)
771
+ * Integer minor units of `currency` (ISO 4217 exponent).
767
772
  */
768
773
  taxAmount?: number;
769
774
  /**
770
- * Amount in cents (e.g. 1999 = $19.99)
775
+ * Integer minor units of `currency` (ISO 4217 exponent).
771
776
  */
772
777
  discountAmount?: number;
773
778
  /**
774
- * Amount in cents (e.g. 1999 = $19.99)
779
+ * Integer minor units of `currency` (ISO 4217 exponent).
775
780
  */
776
781
  total?: number;
777
782
  /**
@@ -790,7 +795,7 @@ export declare class CartsService {
790
795
  totalPayments?: number | null;
791
796
  trialDays?: number;
792
797
  /**
793
- * Amount in cents (e.g. 1999 = $19.99)
798
+ * Integer minor units of `currency` (ISO 4217 exponent).
794
799
  */
795
800
  amount?: number | null;
796
801
  count?: number | null;
@@ -800,7 +805,7 @@ export declare class CartsService {
800
805
  intervalCount?: number | null;
801
806
  }> | null;
802
807
  /**
803
- * Amount in cents (e.g. 1999 = $19.99)
808
+ * Integer minor units of `currency` (ISO 4217 exponent).
804
809
  */
805
810
  scheduleUnitTotal?: number | null;
806
811
  } | null;
@@ -814,6 +819,10 @@ export declare class CartsService {
814
819
  * Arbitrary key-value metadata
815
820
  */
816
821
  metadata?: Record<string, any>;
822
+ /**
823
+ * The cart's currency; the line's amounts are minor units of it
824
+ */
825
+ currency?: CurrencyCode;
817
826
  };
818
827
  meta?: {
819
828
  /**
@@ -850,7 +859,7 @@ export declare class CartsService {
850
859
  id?: string;
851
860
  orderNumber?: string;
852
861
  status?: 'draft';
853
- currency?: string;
862
+ currency?: CurrencyCode;
854
863
  /**
855
864
  * In cents
856
865
  */
@@ -888,7 +897,7 @@ export declare class CartsService {
888
897
  id?: string;
889
898
  orderNumber?: string;
890
899
  status?: 'draft';
891
- currency?: string;
900
+ currency?: CurrencyCode;
892
901
  /**
893
902
  * In cents
894
903
  */
@@ -967,25 +976,25 @@ export declare class CartsService {
967
976
  customerId?: string | null;
968
977
  customerEmail?: string | null;
969
978
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
970
- currency?: string;
979
+ currency?: CurrencyCode;
971
980
  /**
972
- * Amount in cents (e.g. 1999 = $19.99)
981
+ * Integer minor units of `currency` (ISO 4217 exponent).
973
982
  */
974
983
  subtotal?: number;
975
984
  /**
976
- * Amount in cents (e.g. 1999 = $19.99)
985
+ * Integer minor units of `currency` (ISO 4217 exponent).
977
986
  */
978
987
  taxTotal?: number;
979
988
  /**
980
- * Amount in cents (e.g. 1999 = $19.99)
989
+ * Integer minor units of `currency` (ISO 4217 exponent).
981
990
  */
982
991
  discountTotal?: number;
983
992
  /**
984
- * Amount in cents (e.g. 1999 = $19.99)
993
+ * Integer minor units of `currency` (ISO 4217 exponent).
985
994
  */
986
995
  shippingTotal?: number;
987
996
  /**
988
- * Amount in cents (e.g. 1999 = $19.99)
997
+ * Integer minor units of `currency` (ISO 4217 exponent).
989
998
  */
990
999
  total?: number;
991
1000
  lineItems?: Array<{
@@ -996,24 +1005,24 @@ export declare class CartsService {
996
1005
  name?: string;
997
1006
  description?: string | null;
998
1007
  /**
999
- * Amount in cents (e.g. 1999 = $19.99)
1008
+ * Integer minor units of `currency` (ISO 4217 exponent).
1000
1009
  */
1001
1010
  unitPrice?: number;
1002
1011
  quantity?: number;
1003
1012
  /**
1004
- * Amount in cents (e.g. 1999 = $19.99)
1013
+ * Integer minor units of `currency` (ISO 4217 exponent).
1005
1014
  */
1006
1015
  subtotal?: number;
1007
1016
  /**
1008
- * Amount in cents (e.g. 1999 = $19.99)
1017
+ * Integer minor units of `currency` (ISO 4217 exponent).
1009
1018
  */
1010
1019
  taxAmount?: number;
1011
1020
  /**
1012
- * Amount in cents (e.g. 1999 = $19.99)
1021
+ * Integer minor units of `currency` (ISO 4217 exponent).
1013
1022
  */
1014
1023
  discountAmount?: number;
1015
1024
  /**
1016
- * Amount in cents (e.g. 1999 = $19.99)
1025
+ * Integer minor units of `currency` (ISO 4217 exponent).
1017
1026
  */
1018
1027
  total?: number;
1019
1028
  /**
@@ -1032,7 +1041,7 @@ export declare class CartsService {
1032
1041
  totalPayments?: number | null;
1033
1042
  trialDays?: number;
1034
1043
  /**
1035
- * Amount in cents (e.g. 1999 = $19.99)
1044
+ * Integer minor units of `currency` (ISO 4217 exponent).
1036
1045
  */
1037
1046
  amount?: number | null;
1038
1047
  count?: number | null;
@@ -1042,7 +1051,7 @@ export declare class CartsService {
1042
1051
  intervalCount?: number | null;
1043
1052
  }> | null;
1044
1053
  /**
1045
- * Amount in cents (e.g. 1999 = $19.99)
1054
+ * Integer minor units of `currency` (ISO 4217 exponent).
1046
1055
  */
1047
1056
  scheduleUnitTotal?: number | null;
1048
1057
  } | null;
@@ -1078,10 +1087,10 @@ export declare class CartsService {
1078
1087
  code?: string;
1079
1088
  type?: 'percentage' | 'fixed_amount';
1080
1089
  /**
1081
- * Amount in cents (e.g. 1999 = $19.99)
1090
+ * Integer minor units of `currency` (ISO 4217 exponent).
1082
1091
  */
1083
1092
  amount?: number;
1084
- currency?: string;
1093
+ currency?: CurrencyCode;
1085
1094
  freeShipping?: boolean;
1086
1095
  validUntil?: string | null;
1087
1096
  snapshotHash?: string;
@@ -1090,10 +1099,10 @@ export declare class CartsService {
1090
1099
  methodId?: string;
1091
1100
  displayName?: string;
1092
1101
  /**
1093
- * Amount in cents (e.g. 1999 = $19.99)
1102
+ * Integer minor units of `currency` (ISO 4217 exponent).
1094
1103
  */
1095
1104
  rateAmount?: number;
1096
- currency?: string;
1105
+ currency?: CurrencyCode;
1097
1106
  carrier?: string;
1098
1107
  serviceCode?: string;
1099
1108
  estimatedDeliveryDays?: number;
@@ -1109,10 +1118,10 @@ export declare class CartsService {
1109
1118
  rateTypeCode?: string | null;
1110
1119
  rate?: number;
1111
1120
  /**
1112
- * Amount in cents (e.g. 1999 = $19.99)
1121
+ * Integer minor units of `currency` (ISO 4217 exponent).
1113
1122
  */
1114
1123
  amount?: number;
1115
- currency?: string | null;
1124
+ currency?: CurrencyCode | null;
1116
1125
  }>;
1117
1126
  /**
1118
1127
  * Arbitrary key-value metadata
@@ -1146,25 +1155,25 @@ export declare class CartsService {
1146
1155
  customerId?: string | null;
1147
1156
  customerEmail?: string | null;
1148
1157
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
1149
- currency?: string;
1158
+ currency?: CurrencyCode;
1150
1159
  /**
1151
- * Amount in cents (e.g. 1999 = $19.99)
1160
+ * Integer minor units of `currency` (ISO 4217 exponent).
1152
1161
  */
1153
1162
  subtotal?: number;
1154
1163
  /**
1155
- * Amount in cents (e.g. 1999 = $19.99)
1164
+ * Integer minor units of `currency` (ISO 4217 exponent).
1156
1165
  */
1157
1166
  taxTotal?: number;
1158
1167
  /**
1159
- * Amount in cents (e.g. 1999 = $19.99)
1168
+ * Integer minor units of `currency` (ISO 4217 exponent).
1160
1169
  */
1161
1170
  discountTotal?: number;
1162
1171
  /**
1163
- * Amount in cents (e.g. 1999 = $19.99)
1172
+ * Integer minor units of `currency` (ISO 4217 exponent).
1164
1173
  */
1165
1174
  shippingTotal?: number;
1166
1175
  /**
1167
- * Amount in cents (e.g. 1999 = $19.99)
1176
+ * Integer minor units of `currency` (ISO 4217 exponent).
1168
1177
  */
1169
1178
  total?: number;
1170
1179
  lineItems?: Array<{
@@ -1175,24 +1184,24 @@ export declare class CartsService {
1175
1184
  name?: string;
1176
1185
  description?: string | null;
1177
1186
  /**
1178
- * Amount in cents (e.g. 1999 = $19.99)
1187
+ * Integer minor units of `currency` (ISO 4217 exponent).
1179
1188
  */
1180
1189
  unitPrice?: number;
1181
1190
  quantity?: number;
1182
1191
  /**
1183
- * Amount in cents (e.g. 1999 = $19.99)
1192
+ * Integer minor units of `currency` (ISO 4217 exponent).
1184
1193
  */
1185
1194
  subtotal?: number;
1186
1195
  /**
1187
- * Amount in cents (e.g. 1999 = $19.99)
1196
+ * Integer minor units of `currency` (ISO 4217 exponent).
1188
1197
  */
1189
1198
  taxAmount?: number;
1190
1199
  /**
1191
- * Amount in cents (e.g. 1999 = $19.99)
1200
+ * Integer minor units of `currency` (ISO 4217 exponent).
1192
1201
  */
1193
1202
  discountAmount?: number;
1194
1203
  /**
1195
- * Amount in cents (e.g. 1999 = $19.99)
1204
+ * Integer minor units of `currency` (ISO 4217 exponent).
1196
1205
  */
1197
1206
  total?: number;
1198
1207
  /**
@@ -1211,7 +1220,7 @@ export declare class CartsService {
1211
1220
  totalPayments?: number | null;
1212
1221
  trialDays?: number;
1213
1222
  /**
1214
- * Amount in cents (e.g. 1999 = $19.99)
1223
+ * Integer minor units of `currency` (ISO 4217 exponent).
1215
1224
  */
1216
1225
  amount?: number | null;
1217
1226
  count?: number | null;
@@ -1221,7 +1230,7 @@ export declare class CartsService {
1221
1230
  intervalCount?: number | null;
1222
1231
  }> | null;
1223
1232
  /**
1224
- * Amount in cents (e.g. 1999 = $19.99)
1233
+ * Integer minor units of `currency` (ISO 4217 exponent).
1225
1234
  */
1226
1235
  scheduleUnitTotal?: number | null;
1227
1236
  } | null;
@@ -1257,10 +1266,10 @@ export declare class CartsService {
1257
1266
  code?: string;
1258
1267
  type?: 'percentage' | 'fixed_amount';
1259
1268
  /**
1260
- * Amount in cents (e.g. 1999 = $19.99)
1269
+ * Integer minor units of `currency` (ISO 4217 exponent).
1261
1270
  */
1262
1271
  amount?: number;
1263
- currency?: string;
1272
+ currency?: CurrencyCode;
1264
1273
  freeShipping?: boolean;
1265
1274
  validUntil?: string | null;
1266
1275
  snapshotHash?: string;
@@ -1269,10 +1278,10 @@ export declare class CartsService {
1269
1278
  methodId?: string;
1270
1279
  displayName?: string;
1271
1280
  /**
1272
- * Amount in cents (e.g. 1999 = $19.99)
1281
+ * Integer minor units of `currency` (ISO 4217 exponent).
1273
1282
  */
1274
1283
  rateAmount?: number;
1275
- currency?: string;
1284
+ currency?: CurrencyCode;
1276
1285
  carrier?: string;
1277
1286
  serviceCode?: string;
1278
1287
  estimatedDeliveryDays?: number;
@@ -1288,10 +1297,10 @@ export declare class CartsService {
1288
1297
  rateTypeCode?: string | null;
1289
1298
  rate?: number;
1290
1299
  /**
1291
- * Amount in cents (e.g. 1999 = $19.99)
1300
+ * Integer minor units of `currency` (ISO 4217 exponent).
1292
1301
  */
1293
1302
  amount?: number;
1294
- currency?: string | null;
1303
+ currency?: CurrencyCode | null;
1295
1304
  }>;
1296
1305
  /**
1297
1306
  * Arbitrary key-value metadata
@@ -1322,7 +1331,7 @@ export declare class CartsService {
1322
1331
  methodId: string;
1323
1332
  displayName: string;
1324
1333
  /**
1325
- * Amount in cents (e.g. 1999 = $19.99)
1334
+ * Integer minor units of `currency` (ISO 4217 exponent).
1326
1335
  */
1327
1336
  rateAmount: number;
1328
1337
  /**
@@ -1340,25 +1349,25 @@ export declare class CartsService {
1340
1349
  customerId?: string | null;
1341
1350
  customerEmail?: string | null;
1342
1351
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
1343
- currency?: string;
1352
+ currency?: CurrencyCode;
1344
1353
  /**
1345
- * Amount in cents (e.g. 1999 = $19.99)
1354
+ * Integer minor units of `currency` (ISO 4217 exponent).
1346
1355
  */
1347
1356
  subtotal?: number;
1348
1357
  /**
1349
- * Amount in cents (e.g. 1999 = $19.99)
1358
+ * Integer minor units of `currency` (ISO 4217 exponent).
1350
1359
  */
1351
1360
  taxTotal?: number;
1352
1361
  /**
1353
- * Amount in cents (e.g. 1999 = $19.99)
1362
+ * Integer minor units of `currency` (ISO 4217 exponent).
1354
1363
  */
1355
1364
  discountTotal?: number;
1356
1365
  /**
1357
- * Amount in cents (e.g. 1999 = $19.99)
1366
+ * Integer minor units of `currency` (ISO 4217 exponent).
1358
1367
  */
1359
1368
  shippingTotal?: number;
1360
1369
  /**
1361
- * Amount in cents (e.g. 1999 = $19.99)
1370
+ * Integer minor units of `currency` (ISO 4217 exponent).
1362
1371
  */
1363
1372
  total?: number;
1364
1373
  lineItems?: Array<{
@@ -1369,24 +1378,24 @@ export declare class CartsService {
1369
1378
  name?: string;
1370
1379
  description?: string | null;
1371
1380
  /**
1372
- * Amount in cents (e.g. 1999 = $19.99)
1381
+ * Integer minor units of `currency` (ISO 4217 exponent).
1373
1382
  */
1374
1383
  unitPrice?: number;
1375
1384
  quantity?: number;
1376
1385
  /**
1377
- * Amount in cents (e.g. 1999 = $19.99)
1386
+ * Integer minor units of `currency` (ISO 4217 exponent).
1378
1387
  */
1379
1388
  subtotal?: number;
1380
1389
  /**
1381
- * Amount in cents (e.g. 1999 = $19.99)
1390
+ * Integer minor units of `currency` (ISO 4217 exponent).
1382
1391
  */
1383
1392
  taxAmount?: number;
1384
1393
  /**
1385
- * Amount in cents (e.g. 1999 = $19.99)
1394
+ * Integer minor units of `currency` (ISO 4217 exponent).
1386
1395
  */
1387
1396
  discountAmount?: number;
1388
1397
  /**
1389
- * Amount in cents (e.g. 1999 = $19.99)
1398
+ * Integer minor units of `currency` (ISO 4217 exponent).
1390
1399
  */
1391
1400
  total?: number;
1392
1401
  /**
@@ -1405,7 +1414,7 @@ export declare class CartsService {
1405
1414
  totalPayments?: number | null;
1406
1415
  trialDays?: number;
1407
1416
  /**
1408
- * Amount in cents (e.g. 1999 = $19.99)
1417
+ * Integer minor units of `currency` (ISO 4217 exponent).
1409
1418
  */
1410
1419
  amount?: number | null;
1411
1420
  count?: number | null;
@@ -1415,7 +1424,7 @@ export declare class CartsService {
1415
1424
  intervalCount?: number | null;
1416
1425
  }> | null;
1417
1426
  /**
1418
- * Amount in cents (e.g. 1999 = $19.99)
1427
+ * Integer minor units of `currency` (ISO 4217 exponent).
1419
1428
  */
1420
1429
  scheduleUnitTotal?: number | null;
1421
1430
  } | null;
@@ -1451,10 +1460,10 @@ export declare class CartsService {
1451
1460
  code?: string;
1452
1461
  type?: 'percentage' | 'fixed_amount';
1453
1462
  /**
1454
- * Amount in cents (e.g. 1999 = $19.99)
1463
+ * Integer minor units of `currency` (ISO 4217 exponent).
1455
1464
  */
1456
1465
  amount?: number;
1457
- currency?: string;
1466
+ currency?: CurrencyCode;
1458
1467
  freeShipping?: boolean;
1459
1468
  validUntil?: string | null;
1460
1469
  snapshotHash?: string;
@@ -1463,10 +1472,10 @@ export declare class CartsService {
1463
1472
  methodId?: string;
1464
1473
  displayName?: string;
1465
1474
  /**
1466
- * Amount in cents (e.g. 1999 = $19.99)
1475
+ * Integer minor units of `currency` (ISO 4217 exponent).
1467
1476
  */
1468
1477
  rateAmount?: number;
1469
- currency?: string;
1478
+ currency?: CurrencyCode;
1470
1479
  carrier?: string;
1471
1480
  serviceCode?: string;
1472
1481
  estimatedDeliveryDays?: number;
@@ -1482,10 +1491,10 @@ export declare class CartsService {
1482
1491
  rateTypeCode?: string | null;
1483
1492
  rate?: number;
1484
1493
  /**
1485
- * Amount in cents (e.g. 1999 = $19.99)
1494
+ * Integer minor units of `currency` (ISO 4217 exponent).
1486
1495
  */
1487
1496
  amount?: number;
1488
- currency?: string | null;
1497
+ currency?: CurrencyCode | null;
1489
1498
  }>;
1490
1499
  /**
1491
1500
  * Arbitrary key-value metadata
@@ -1519,25 +1528,25 @@ export declare class CartsService {
1519
1528
  customerId?: string | null;
1520
1529
  customerEmail?: string | null;
1521
1530
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
1522
- currency?: string;
1531
+ currency?: CurrencyCode;
1523
1532
  /**
1524
- * Amount in cents (e.g. 1999 = $19.99)
1533
+ * Integer minor units of `currency` (ISO 4217 exponent).
1525
1534
  */
1526
1535
  subtotal?: number;
1527
1536
  /**
1528
- * Amount in cents (e.g. 1999 = $19.99)
1537
+ * Integer minor units of `currency` (ISO 4217 exponent).
1529
1538
  */
1530
1539
  taxTotal?: number;
1531
1540
  /**
1532
- * Amount in cents (e.g. 1999 = $19.99)
1541
+ * Integer minor units of `currency` (ISO 4217 exponent).
1533
1542
  */
1534
1543
  discountTotal?: number;
1535
1544
  /**
1536
- * Amount in cents (e.g. 1999 = $19.99)
1545
+ * Integer minor units of `currency` (ISO 4217 exponent).
1537
1546
  */
1538
1547
  shippingTotal?: number;
1539
1548
  /**
1540
- * Amount in cents (e.g. 1999 = $19.99)
1549
+ * Integer minor units of `currency` (ISO 4217 exponent).
1541
1550
  */
1542
1551
  total?: number;
1543
1552
  lineItems?: Array<{
@@ -1548,24 +1557,24 @@ export declare class CartsService {
1548
1557
  name?: string;
1549
1558
  description?: string | null;
1550
1559
  /**
1551
- * Amount in cents (e.g. 1999 = $19.99)
1560
+ * Integer minor units of `currency` (ISO 4217 exponent).
1552
1561
  */
1553
1562
  unitPrice?: number;
1554
1563
  quantity?: number;
1555
1564
  /**
1556
- * Amount in cents (e.g. 1999 = $19.99)
1565
+ * Integer minor units of `currency` (ISO 4217 exponent).
1557
1566
  */
1558
1567
  subtotal?: number;
1559
1568
  /**
1560
- * Amount in cents (e.g. 1999 = $19.99)
1569
+ * Integer minor units of `currency` (ISO 4217 exponent).
1561
1570
  */
1562
1571
  taxAmount?: number;
1563
1572
  /**
1564
- * Amount in cents (e.g. 1999 = $19.99)
1573
+ * Integer minor units of `currency` (ISO 4217 exponent).
1565
1574
  */
1566
1575
  discountAmount?: number;
1567
1576
  /**
1568
- * Amount in cents (e.g. 1999 = $19.99)
1577
+ * Integer minor units of `currency` (ISO 4217 exponent).
1569
1578
  */
1570
1579
  total?: number;
1571
1580
  /**
@@ -1584,7 +1593,7 @@ export declare class CartsService {
1584
1593
  totalPayments?: number | null;
1585
1594
  trialDays?: number;
1586
1595
  /**
1587
- * Amount in cents (e.g. 1999 = $19.99)
1596
+ * Integer minor units of `currency` (ISO 4217 exponent).
1588
1597
  */
1589
1598
  amount?: number | null;
1590
1599
  count?: number | null;
@@ -1594,7 +1603,7 @@ export declare class CartsService {
1594
1603
  intervalCount?: number | null;
1595
1604
  }> | null;
1596
1605
  /**
1597
- * Amount in cents (e.g. 1999 = $19.99)
1606
+ * Integer minor units of `currency` (ISO 4217 exponent).
1598
1607
  */
1599
1608
  scheduleUnitTotal?: number | null;
1600
1609
  } | null;
@@ -1630,10 +1639,10 @@ export declare class CartsService {
1630
1639
  code?: string;
1631
1640
  type?: 'percentage' | 'fixed_amount';
1632
1641
  /**
1633
- * Amount in cents (e.g. 1999 = $19.99)
1642
+ * Integer minor units of `currency` (ISO 4217 exponent).
1634
1643
  */
1635
1644
  amount?: number;
1636
- currency?: string;
1645
+ currency?: CurrencyCode;
1637
1646
  freeShipping?: boolean;
1638
1647
  validUntil?: string | null;
1639
1648
  snapshotHash?: string;
@@ -1642,10 +1651,10 @@ export declare class CartsService {
1642
1651
  methodId?: string;
1643
1652
  displayName?: string;
1644
1653
  /**
1645
- * Amount in cents (e.g. 1999 = $19.99)
1654
+ * Integer minor units of `currency` (ISO 4217 exponent).
1646
1655
  */
1647
1656
  rateAmount?: number;
1648
- currency?: string;
1657
+ currency?: CurrencyCode;
1649
1658
  carrier?: string;
1650
1659
  serviceCode?: string;
1651
1660
  estimatedDeliveryDays?: number;
@@ -1661,10 +1670,10 @@ export declare class CartsService {
1661
1670
  rateTypeCode?: string | null;
1662
1671
  rate?: number;
1663
1672
  /**
1664
- * Amount in cents (e.g. 1999 = $19.99)
1673
+ * Integer minor units of `currency` (ISO 4217 exponent).
1665
1674
  */
1666
1675
  amount?: number;
1667
- currency?: string | null;
1676
+ currency?: CurrencyCode | null;
1668
1677
  }>;
1669
1678
  /**
1670
1679
  * Arbitrary key-value metadata
@@ -1709,25 +1718,25 @@ export declare class CartsService {
1709
1718
  customerId?: string | null;
1710
1719
  customerEmail?: string | null;
1711
1720
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
1712
- currency?: string;
1721
+ currency?: CurrencyCode;
1713
1722
  /**
1714
- * Amount in cents (e.g. 1999 = $19.99)
1723
+ * Integer minor units of `currency` (ISO 4217 exponent).
1715
1724
  */
1716
1725
  subtotal?: number;
1717
1726
  /**
1718
- * Amount in cents (e.g. 1999 = $19.99)
1727
+ * Integer minor units of `currency` (ISO 4217 exponent).
1719
1728
  */
1720
1729
  taxTotal?: number;
1721
1730
  /**
1722
- * Amount in cents (e.g. 1999 = $19.99)
1731
+ * Integer minor units of `currency` (ISO 4217 exponent).
1723
1732
  */
1724
1733
  discountTotal?: number;
1725
1734
  /**
1726
- * Amount in cents (e.g. 1999 = $19.99)
1735
+ * Integer minor units of `currency` (ISO 4217 exponent).
1727
1736
  */
1728
1737
  shippingTotal?: number;
1729
1738
  /**
1730
- * Amount in cents (e.g. 1999 = $19.99)
1739
+ * Integer minor units of `currency` (ISO 4217 exponent).
1731
1740
  */
1732
1741
  total?: number;
1733
1742
  lineItems?: Array<{
@@ -1738,24 +1747,24 @@ export declare class CartsService {
1738
1747
  name?: string;
1739
1748
  description?: string | null;
1740
1749
  /**
1741
- * Amount in cents (e.g. 1999 = $19.99)
1750
+ * Integer minor units of `currency` (ISO 4217 exponent).
1742
1751
  */
1743
1752
  unitPrice?: number;
1744
1753
  quantity?: number;
1745
1754
  /**
1746
- * Amount in cents (e.g. 1999 = $19.99)
1755
+ * Integer minor units of `currency` (ISO 4217 exponent).
1747
1756
  */
1748
1757
  subtotal?: number;
1749
1758
  /**
1750
- * Amount in cents (e.g. 1999 = $19.99)
1759
+ * Integer minor units of `currency` (ISO 4217 exponent).
1751
1760
  */
1752
1761
  taxAmount?: number;
1753
1762
  /**
1754
- * Amount in cents (e.g. 1999 = $19.99)
1763
+ * Integer minor units of `currency` (ISO 4217 exponent).
1755
1764
  */
1756
1765
  discountAmount?: number;
1757
1766
  /**
1758
- * Amount in cents (e.g. 1999 = $19.99)
1767
+ * Integer minor units of `currency` (ISO 4217 exponent).
1759
1768
  */
1760
1769
  total?: number;
1761
1770
  /**
@@ -1774,7 +1783,7 @@ export declare class CartsService {
1774
1783
  totalPayments?: number | null;
1775
1784
  trialDays?: number;
1776
1785
  /**
1777
- * Amount in cents (e.g. 1999 = $19.99)
1786
+ * Integer minor units of `currency` (ISO 4217 exponent).
1778
1787
  */
1779
1788
  amount?: number | null;
1780
1789
  count?: number | null;
@@ -1784,7 +1793,7 @@ export declare class CartsService {
1784
1793
  intervalCount?: number | null;
1785
1794
  }> | null;
1786
1795
  /**
1787
- * Amount in cents (e.g. 1999 = $19.99)
1796
+ * Integer minor units of `currency` (ISO 4217 exponent).
1788
1797
  */
1789
1798
  scheduleUnitTotal?: number | null;
1790
1799
  } | null;
@@ -1820,10 +1829,10 @@ export declare class CartsService {
1820
1829
  code?: string;
1821
1830
  type?: 'percentage' | 'fixed_amount';
1822
1831
  /**
1823
- * Amount in cents (e.g. 1999 = $19.99)
1832
+ * Integer minor units of `currency` (ISO 4217 exponent).
1824
1833
  */
1825
1834
  amount?: number;
1826
- currency?: string;
1835
+ currency?: CurrencyCode;
1827
1836
  freeShipping?: boolean;
1828
1837
  validUntil?: string | null;
1829
1838
  snapshotHash?: string;
@@ -1832,10 +1841,10 @@ export declare class CartsService {
1832
1841
  methodId?: string;
1833
1842
  displayName?: string;
1834
1843
  /**
1835
- * Amount in cents (e.g. 1999 = $19.99)
1844
+ * Integer minor units of `currency` (ISO 4217 exponent).
1836
1845
  */
1837
1846
  rateAmount?: number;
1838
- currency?: string;
1847
+ currency?: CurrencyCode;
1839
1848
  carrier?: string;
1840
1849
  serviceCode?: string;
1841
1850
  estimatedDeliveryDays?: number;
@@ -1851,10 +1860,10 @@ export declare class CartsService {
1851
1860
  rateTypeCode?: string | null;
1852
1861
  rate?: number;
1853
1862
  /**
1854
- * Amount in cents (e.g. 1999 = $19.99)
1863
+ * Integer minor units of `currency` (ISO 4217 exponent).
1855
1864
  */
1856
1865
  amount?: number;
1857
- currency?: string | null;
1866
+ currency?: CurrencyCode | null;
1858
1867
  }>;
1859
1868
  /**
1860
1869
  * Arbitrary key-value metadata
@@ -1888,25 +1897,25 @@ export declare class CartsService {
1888
1897
  customerId?: string | null;
1889
1898
  customerEmail?: string | null;
1890
1899
  status?: 'open' | 'checkout' | 'converted' | 'abandoned';
1891
- currency?: string;
1900
+ currency?: CurrencyCode;
1892
1901
  /**
1893
- * Amount in cents (e.g. 1999 = $19.99)
1902
+ * Integer minor units of `currency` (ISO 4217 exponent).
1894
1903
  */
1895
1904
  subtotal?: number;
1896
1905
  /**
1897
- * Amount in cents (e.g. 1999 = $19.99)
1906
+ * Integer minor units of `currency` (ISO 4217 exponent).
1898
1907
  */
1899
1908
  taxTotal?: number;
1900
1909
  /**
1901
- * Amount in cents (e.g. 1999 = $19.99)
1910
+ * Integer minor units of `currency` (ISO 4217 exponent).
1902
1911
  */
1903
1912
  discountTotal?: number;
1904
1913
  /**
1905
- * Amount in cents (e.g. 1999 = $19.99)
1914
+ * Integer minor units of `currency` (ISO 4217 exponent).
1906
1915
  */
1907
1916
  shippingTotal?: number;
1908
1917
  /**
1909
- * Amount in cents (e.g. 1999 = $19.99)
1918
+ * Integer minor units of `currency` (ISO 4217 exponent).
1910
1919
  */
1911
1920
  total?: number;
1912
1921
  lineItems?: Array<{
@@ -1917,24 +1926,24 @@ export declare class CartsService {
1917
1926
  name?: string;
1918
1927
  description?: string | null;
1919
1928
  /**
1920
- * Amount in cents (e.g. 1999 = $19.99)
1929
+ * Integer minor units of `currency` (ISO 4217 exponent).
1921
1930
  */
1922
1931
  unitPrice?: number;
1923
1932
  quantity?: number;
1924
1933
  /**
1925
- * Amount in cents (e.g. 1999 = $19.99)
1934
+ * Integer minor units of `currency` (ISO 4217 exponent).
1926
1935
  */
1927
1936
  subtotal?: number;
1928
1937
  /**
1929
- * Amount in cents (e.g. 1999 = $19.99)
1938
+ * Integer minor units of `currency` (ISO 4217 exponent).
1930
1939
  */
1931
1940
  taxAmount?: number;
1932
1941
  /**
1933
- * Amount in cents (e.g. 1999 = $19.99)
1942
+ * Integer minor units of `currency` (ISO 4217 exponent).
1934
1943
  */
1935
1944
  discountAmount?: number;
1936
1945
  /**
1937
- * Amount in cents (e.g. 1999 = $19.99)
1946
+ * Integer minor units of `currency` (ISO 4217 exponent).
1938
1947
  */
1939
1948
  total?: number;
1940
1949
  /**
@@ -1953,7 +1962,7 @@ export declare class CartsService {
1953
1962
  totalPayments?: number | null;
1954
1963
  trialDays?: number;
1955
1964
  /**
1956
- * Amount in cents (e.g. 1999 = $19.99)
1965
+ * Integer minor units of `currency` (ISO 4217 exponent).
1957
1966
  */
1958
1967
  amount?: number | null;
1959
1968
  count?: number | null;
@@ -1963,7 +1972,7 @@ export declare class CartsService {
1963
1972
  intervalCount?: number | null;
1964
1973
  }> | null;
1965
1974
  /**
1966
- * Amount in cents (e.g. 1999 = $19.99)
1975
+ * Integer minor units of `currency` (ISO 4217 exponent).
1967
1976
  */
1968
1977
  scheduleUnitTotal?: number | null;
1969
1978
  } | null;
@@ -1999,10 +2008,10 @@ export declare class CartsService {
1999
2008
  code?: string;
2000
2009
  type?: 'percentage' | 'fixed_amount';
2001
2010
  /**
2002
- * Amount in cents (e.g. 1999 = $19.99)
2011
+ * Integer minor units of `currency` (ISO 4217 exponent).
2003
2012
  */
2004
2013
  amount?: number;
2005
- currency?: string;
2014
+ currency?: CurrencyCode;
2006
2015
  freeShipping?: boolean;
2007
2016
  validUntil?: string | null;
2008
2017
  snapshotHash?: string;
@@ -2011,10 +2020,10 @@ export declare class CartsService {
2011
2020
  methodId?: string;
2012
2021
  displayName?: string;
2013
2022
  /**
2014
- * Amount in cents (e.g. 1999 = $19.99)
2023
+ * Integer minor units of `currency` (ISO 4217 exponent).
2015
2024
  */
2016
2025
  rateAmount?: number;
2017
- currency?: string;
2026
+ currency?: CurrencyCode;
2018
2027
  carrier?: string;
2019
2028
  serviceCode?: string;
2020
2029
  estimatedDeliveryDays?: number;
@@ -2030,10 +2039,10 @@ export declare class CartsService {
2030
2039
  rateTypeCode?: string | null;
2031
2040
  rate?: number;
2032
2041
  /**
2033
- * Amount in cents (e.g. 1999 = $19.99)
2042
+ * Integer minor units of `currency` (ISO 4217 exponent).
2034
2043
  */
2035
2044
  amount?: number;
2036
- currency?: string | null;
2045
+ currency?: CurrencyCode | null;
2037
2046
  }>;
2038
2047
  /**
2039
2048
  * Arbitrary key-value metadata