@usethrottle/api-client 6.2.0 → 6.4.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 (27) hide show
  1. package/dist/generated/index.d.ts +1 -0
  2. package/dist/generated/index.d.ts.map +1 -1
  3. package/dist/generated/index.js +1 -0
  4. package/dist/generated/index.js.map +1 -1
  5. package/dist/generated/services/CartsService.d.ts +279 -0
  6. package/dist/generated/services/CartsService.d.ts.map +1 -1
  7. package/dist/generated/services/CartsService.js.map +1 -1
  8. package/dist/generated/services/CustomerInvoicesService.d.ts +3 -3
  9. package/dist/generated/services/CustomerInvoicesService.js +3 -3
  10. package/dist/generated/services/DefaultService.d.ts +22 -0
  11. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  12. package/dist/generated/services/DefaultService.js.map +1 -1
  13. package/dist/generated/services/FeesService.d.ts +1023 -0
  14. package/dist/generated/services/FeesService.d.ts.map +1 -0
  15. package/dist/generated/services/FeesService.js +555 -0
  16. package/dist/generated/services/FeesService.js.map +1 -0
  17. package/dist/generated/services/OrdersService.d.ts +501 -0
  18. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  19. package/dist/generated/services/OrdersService.js +27 -0
  20. package/dist/generated/services/OrdersService.js.map +1 -1
  21. package/dist/generated/services/QuotesService.d.ts +241 -0
  22. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  23. package/dist/generated/services/QuotesService.js.map +1 -1
  24. package/dist/generated/services/SubscriptionsService.d.ts +390 -0
  25. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  26. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  27. package/package.json +1 -1
@@ -202,6 +202,26 @@ export declare class OrdersService {
202
202
  */
203
203
  metadata?: Record<string, any>;
204
204
  }>;
205
+ /**
206
+ * Explicit fees, stored as `custom`. A direct order never gets automatic fees. `taxable: true` is refused (`422 fee_invalid`): direct orders carry the tax you send. A non-empty list is refused with `409 fees_disabled` while order fees are off for the environment.
207
+ */
208
+ fees?: Array<{
209
+ name?: string;
210
+ kind?: 'percentage' | 'flat';
211
+ /**
212
+ * Percentage fees: 1..10000 (250 = 2.5%) of the items after discounts.
213
+ */
214
+ rateBps?: number;
215
+ /**
216
+ * Flat fees: minor units of the order currency.
217
+ */
218
+ flatAmount?: number;
219
+ taxable?: boolean;
220
+ taxCode?: string;
221
+ appliesToOneTime?: boolean;
222
+ appliesToSubscription?: boolean;
223
+ }>;
224
+ feeCharge?: 'order' | 'off_cycle' | 'trial_signup';
205
225
  }, xThrottleEnvironmentId?: string): CancelablePromise<{
206
226
  data?: {
207
227
  id?: string;
@@ -262,6 +282,37 @@ export declare class OrdersService {
262
282
  * Integer minor units of `currency` (ISO 4217 exponent).
263
283
  */
264
284
  shippingDiscountTotal?: number;
285
+ /**
286
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
287
+ */
288
+ feeTotal?: number;
289
+ fees?: Array<{
290
+ id?: string;
291
+ feeDefinitionId?: string | null;
292
+ source?: 'auto' | 'override' | 'custom';
293
+ name?: string;
294
+ /**
295
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
296
+ */
297
+ label?: string;
298
+ kind?: 'percentage' | 'flat';
299
+ rateBps?: number | null;
300
+ /**
301
+ * Integer minor units of `currency` (ISO 4217 exponent).
302
+ */
303
+ baseAmount?: number;
304
+ /**
305
+ * Integer minor units of `currency` (ISO 4217 exponent).
306
+ */
307
+ amount?: number;
308
+ taxable?: boolean;
309
+ /**
310
+ * Integer minor units of `currency` (ISO 4217 exponent).
311
+ */
312
+ taxAmount?: number;
313
+ appliesToOneTime?: boolean;
314
+ appliesToSubscription?: boolean;
315
+ }>;
265
316
  /**
266
317
  * Integer minor units of `currency` (ISO 4217 exponent).
267
318
  */
@@ -538,6 +589,37 @@ export declare class OrdersService {
538
589
  * Integer minor units of `currency` (ISO 4217 exponent).
539
590
  */
540
591
  shippingDiscountTotal?: number;
592
+ /**
593
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
594
+ */
595
+ feeTotal?: number;
596
+ fees?: Array<{
597
+ id?: string;
598
+ feeDefinitionId?: string | null;
599
+ source?: 'auto' | 'override' | 'custom';
600
+ name?: string;
601
+ /**
602
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
603
+ */
604
+ label?: string;
605
+ kind?: 'percentage' | 'flat';
606
+ rateBps?: number | null;
607
+ /**
608
+ * Integer minor units of `currency` (ISO 4217 exponent).
609
+ */
610
+ baseAmount?: number;
611
+ /**
612
+ * Integer minor units of `currency` (ISO 4217 exponent).
613
+ */
614
+ amount?: number;
615
+ taxable?: boolean;
616
+ /**
617
+ * Integer minor units of `currency` (ISO 4217 exponent).
618
+ */
619
+ taxAmount?: number;
620
+ appliesToOneTime?: boolean;
621
+ appliesToSubscription?: boolean;
622
+ }>;
541
623
  /**
542
624
  * Integer minor units of `currency` (ISO 4217 exponent).
543
625
  */
@@ -823,6 +905,37 @@ export declare class OrdersService {
823
905
  * Integer minor units of `currency` (ISO 4217 exponent).
824
906
  */
825
907
  shippingDiscountTotal?: number;
908
+ /**
909
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
910
+ */
911
+ feeTotal?: number;
912
+ fees?: Array<{
913
+ id?: string;
914
+ feeDefinitionId?: string | null;
915
+ source?: 'auto' | 'override' | 'custom';
916
+ name?: string;
917
+ /**
918
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
919
+ */
920
+ label?: string;
921
+ kind?: 'percentage' | 'flat';
922
+ rateBps?: number | null;
923
+ /**
924
+ * Integer minor units of `currency` (ISO 4217 exponent).
925
+ */
926
+ baseAmount?: number;
927
+ /**
928
+ * Integer minor units of `currency` (ISO 4217 exponent).
929
+ */
930
+ amount?: number;
931
+ taxable?: boolean;
932
+ /**
933
+ * Integer minor units of `currency` (ISO 4217 exponent).
934
+ */
935
+ taxAmount?: number;
936
+ appliesToOneTime?: boolean;
937
+ appliesToSubscription?: boolean;
938
+ }>;
826
939
  /**
827
940
  * Integer minor units of `currency` (ISO 4217 exponent).
828
941
  */
@@ -1143,6 +1256,37 @@ export declare class OrdersService {
1143
1256
  * Integer minor units of `currency` (ISO 4217 exponent).
1144
1257
  */
1145
1258
  shippingDiscountTotal?: number;
1259
+ /**
1260
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
1261
+ */
1262
+ feeTotal?: number;
1263
+ fees?: Array<{
1264
+ id?: string;
1265
+ feeDefinitionId?: string | null;
1266
+ source?: 'auto' | 'override' | 'custom';
1267
+ name?: string;
1268
+ /**
1269
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1270
+ */
1271
+ label?: string;
1272
+ kind?: 'percentage' | 'flat';
1273
+ rateBps?: number | null;
1274
+ /**
1275
+ * Integer minor units of `currency` (ISO 4217 exponent).
1276
+ */
1277
+ baseAmount?: number;
1278
+ /**
1279
+ * Integer minor units of `currency` (ISO 4217 exponent).
1280
+ */
1281
+ amount?: number;
1282
+ taxable?: boolean;
1283
+ /**
1284
+ * Integer minor units of `currency` (ISO 4217 exponent).
1285
+ */
1286
+ taxAmount?: number;
1287
+ appliesToOneTime?: boolean;
1288
+ appliesToSubscription?: boolean;
1289
+ }>;
1146
1290
  /**
1147
1291
  * Integer minor units of `currency` (ISO 4217 exponent).
1148
1292
  */
@@ -1414,6 +1558,37 @@ export declare class OrdersService {
1414
1558
  * Integer minor units of `currency` (ISO 4217 exponent).
1415
1559
  */
1416
1560
  shippingDiscountTotal?: number;
1561
+ /**
1562
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
1563
+ */
1564
+ feeTotal?: number;
1565
+ fees?: Array<{
1566
+ id?: string;
1567
+ feeDefinitionId?: string | null;
1568
+ source?: 'auto' | 'override' | 'custom';
1569
+ name?: string;
1570
+ /**
1571
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1572
+ */
1573
+ label?: string;
1574
+ kind?: 'percentage' | 'flat';
1575
+ rateBps?: number | null;
1576
+ /**
1577
+ * Integer minor units of `currency` (ISO 4217 exponent).
1578
+ */
1579
+ baseAmount?: number;
1580
+ /**
1581
+ * Integer minor units of `currency` (ISO 4217 exponent).
1582
+ */
1583
+ amount?: number;
1584
+ taxable?: boolean;
1585
+ /**
1586
+ * Integer minor units of `currency` (ISO 4217 exponent).
1587
+ */
1588
+ taxAmount?: number;
1589
+ appliesToOneTime?: boolean;
1590
+ appliesToSubscription?: boolean;
1591
+ }>;
1417
1592
  /**
1418
1593
  * Integer minor units of `currency` (ISO 4217 exponent).
1419
1594
  */
@@ -1680,6 +1855,37 @@ export declare class OrdersService {
1680
1855
  * Integer minor units of `currency` (ISO 4217 exponent).
1681
1856
  */
1682
1857
  shippingDiscountTotal?: number;
1858
+ /**
1859
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
1860
+ */
1861
+ feeTotal?: number;
1862
+ fees?: Array<{
1863
+ id?: string;
1864
+ feeDefinitionId?: string | null;
1865
+ source?: 'auto' | 'override' | 'custom';
1866
+ name?: string;
1867
+ /**
1868
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1869
+ */
1870
+ label?: string;
1871
+ kind?: 'percentage' | 'flat';
1872
+ rateBps?: number | null;
1873
+ /**
1874
+ * Integer minor units of `currency` (ISO 4217 exponent).
1875
+ */
1876
+ baseAmount?: number;
1877
+ /**
1878
+ * Integer minor units of `currency` (ISO 4217 exponent).
1879
+ */
1880
+ amount?: number;
1881
+ taxable?: boolean;
1882
+ /**
1883
+ * Integer minor units of `currency` (ISO 4217 exponent).
1884
+ */
1885
+ taxAmount?: number;
1886
+ appliesToOneTime?: boolean;
1887
+ appliesToSubscription?: boolean;
1888
+ }>;
1683
1889
  /**
1684
1890
  * Integer minor units of `currency` (ISO 4217 exponent).
1685
1891
  */
@@ -1946,6 +2152,37 @@ export declare class OrdersService {
1946
2152
  * Integer minor units of `currency` (ISO 4217 exponent).
1947
2153
  */
1948
2154
  shippingDiscountTotal?: number;
2155
+ /**
2156
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
2157
+ */
2158
+ feeTotal?: number;
2159
+ fees?: Array<{
2160
+ id?: string;
2161
+ feeDefinitionId?: string | null;
2162
+ source?: 'auto' | 'override' | 'custom';
2163
+ name?: string;
2164
+ /**
2165
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
2166
+ */
2167
+ label?: string;
2168
+ kind?: 'percentage' | 'flat';
2169
+ rateBps?: number | null;
2170
+ /**
2171
+ * Integer minor units of `currency` (ISO 4217 exponent).
2172
+ */
2173
+ baseAmount?: number;
2174
+ /**
2175
+ * Integer minor units of `currency` (ISO 4217 exponent).
2176
+ */
2177
+ amount?: number;
2178
+ taxable?: boolean;
2179
+ /**
2180
+ * Integer minor units of `currency` (ISO 4217 exponent).
2181
+ */
2182
+ taxAmount?: number;
2183
+ appliesToOneTime?: boolean;
2184
+ appliesToSubscription?: boolean;
2185
+ }>;
1949
2186
  /**
1950
2187
  * Integer minor units of `currency` (ISO 4217 exponent).
1951
2188
  */
@@ -2213,6 +2450,37 @@ export declare class OrdersService {
2213
2450
  * Integer minor units of `currency` (ISO 4217 exponent).
2214
2451
  */
2215
2452
  shippingDiscountTotal?: number;
2453
+ /**
2454
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
2455
+ */
2456
+ feeTotal?: number;
2457
+ fees?: Array<{
2458
+ id?: string;
2459
+ feeDefinitionId?: string | null;
2460
+ source?: 'auto' | 'override' | 'custom';
2461
+ name?: string;
2462
+ /**
2463
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
2464
+ */
2465
+ label?: string;
2466
+ kind?: 'percentage' | 'flat';
2467
+ rateBps?: number | null;
2468
+ /**
2469
+ * Integer minor units of `currency` (ISO 4217 exponent).
2470
+ */
2471
+ baseAmount?: number;
2472
+ /**
2473
+ * Integer minor units of `currency` (ISO 4217 exponent).
2474
+ */
2475
+ amount?: number;
2476
+ taxable?: boolean;
2477
+ /**
2478
+ * Integer minor units of `currency` (ISO 4217 exponent).
2479
+ */
2480
+ taxAmount?: number;
2481
+ appliesToOneTime?: boolean;
2482
+ appliesToSubscription?: boolean;
2483
+ }>;
2216
2484
  /**
2217
2485
  * Integer minor units of `currency` (ISO 4217 exponent).
2218
2486
  */
@@ -2492,6 +2760,37 @@ export declare class OrdersService {
2492
2760
  * Integer minor units of `currency` (ISO 4217 exponent).
2493
2761
  */
2494
2762
  shippingDiscountTotal?: number;
2763
+ /**
2764
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
2765
+ */
2766
+ feeTotal?: number;
2767
+ fees?: Array<{
2768
+ id?: string;
2769
+ feeDefinitionId?: string | null;
2770
+ source?: 'auto' | 'override' | 'custom';
2771
+ name?: string;
2772
+ /**
2773
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
2774
+ */
2775
+ label?: string;
2776
+ kind?: 'percentage' | 'flat';
2777
+ rateBps?: number | null;
2778
+ /**
2779
+ * Integer minor units of `currency` (ISO 4217 exponent).
2780
+ */
2781
+ baseAmount?: number;
2782
+ /**
2783
+ * Integer minor units of `currency` (ISO 4217 exponent).
2784
+ */
2785
+ amount?: number;
2786
+ taxable?: boolean;
2787
+ /**
2788
+ * Integer minor units of `currency` (ISO 4217 exponent).
2789
+ */
2790
+ taxAmount?: number;
2791
+ appliesToOneTime?: boolean;
2792
+ appliesToSubscription?: boolean;
2793
+ }>;
2495
2794
  /**
2496
2795
  * Integer minor units of `currency` (ISO 4217 exponent).
2497
2796
  */
@@ -2758,6 +3057,37 @@ export declare class OrdersService {
2758
3057
  * Integer minor units of `currency` (ISO 4217 exponent).
2759
3058
  */
2760
3059
  shippingDiscountTotal?: number;
3060
+ /**
3061
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
3062
+ */
3063
+ feeTotal?: number;
3064
+ fees?: Array<{
3065
+ id?: string;
3066
+ feeDefinitionId?: string | null;
3067
+ source?: 'auto' | 'override' | 'custom';
3068
+ name?: string;
3069
+ /**
3070
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
3071
+ */
3072
+ label?: string;
3073
+ kind?: 'percentage' | 'flat';
3074
+ rateBps?: number | null;
3075
+ /**
3076
+ * Integer minor units of `currency` (ISO 4217 exponent).
3077
+ */
3078
+ baseAmount?: number;
3079
+ /**
3080
+ * Integer minor units of `currency` (ISO 4217 exponent).
3081
+ */
3082
+ amount?: number;
3083
+ taxable?: boolean;
3084
+ /**
3085
+ * Integer minor units of `currency` (ISO 4217 exponent).
3086
+ */
3087
+ taxAmount?: number;
3088
+ appliesToOneTime?: boolean;
3089
+ appliesToSubscription?: boolean;
3090
+ }>;
2761
3091
  /**
2762
3092
  * Integer minor units of `currency` (ISO 4217 exponent).
2763
3093
  */
@@ -3030,6 +3360,37 @@ export declare class OrdersService {
3030
3360
  * Integer minor units of `currency` (ISO 4217 exponent).
3031
3361
  */
3032
3362
  shippingDiscountTotal?: number;
3363
+ /**
3364
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
3365
+ */
3366
+ feeTotal?: number;
3367
+ fees?: Array<{
3368
+ id?: string;
3369
+ feeDefinitionId?: string | null;
3370
+ source?: 'auto' | 'override' | 'custom';
3371
+ name?: string;
3372
+ /**
3373
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
3374
+ */
3375
+ label?: string;
3376
+ kind?: 'percentage' | 'flat';
3377
+ rateBps?: number | null;
3378
+ /**
3379
+ * Integer minor units of `currency` (ISO 4217 exponent).
3380
+ */
3381
+ baseAmount?: number;
3382
+ /**
3383
+ * Integer minor units of `currency` (ISO 4217 exponent).
3384
+ */
3385
+ amount?: number;
3386
+ taxable?: boolean;
3387
+ /**
3388
+ * Integer minor units of `currency` (ISO 4217 exponent).
3389
+ */
3390
+ taxAmount?: number;
3391
+ appliesToOneTime?: boolean;
3392
+ appliesToSubscription?: boolean;
3393
+ }>;
3033
3394
  /**
3034
3395
  * Integer minor units of `currency` (ISO 4217 exponent).
3035
3396
  */
@@ -3296,6 +3657,37 @@ export declare class OrdersService {
3296
3657
  * Integer minor units of `currency` (ISO 4217 exponent).
3297
3658
  */
3298
3659
  shippingDiscountTotal?: number;
3660
+ /**
3661
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
3662
+ */
3663
+ feeTotal?: number;
3664
+ fees?: Array<{
3665
+ id?: string;
3666
+ feeDefinitionId?: string | null;
3667
+ source?: 'auto' | 'override' | 'custom';
3668
+ name?: string;
3669
+ /**
3670
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
3671
+ */
3672
+ label?: string;
3673
+ kind?: 'percentage' | 'flat';
3674
+ rateBps?: number | null;
3675
+ /**
3676
+ * Integer minor units of `currency` (ISO 4217 exponent).
3677
+ */
3678
+ baseAmount?: number;
3679
+ /**
3680
+ * Integer minor units of `currency` (ISO 4217 exponent).
3681
+ */
3682
+ amount?: number;
3683
+ taxable?: boolean;
3684
+ /**
3685
+ * Integer minor units of `currency` (ISO 4217 exponent).
3686
+ */
3687
+ taxAmount?: number;
3688
+ appliesToOneTime?: boolean;
3689
+ appliesToSubscription?: boolean;
3690
+ }>;
3299
3691
  /**
3300
3692
  * Integer minor units of `currency` (ISO 4217 exponent).
3301
3693
  */
@@ -3559,6 +3951,37 @@ export declare class OrdersService {
3559
3951
  * Integer minor units of `currency` (ISO 4217 exponent).
3560
3952
  */
3561
3953
  shippingDiscountTotal?: number;
3954
+ /**
3955
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
3956
+ */
3957
+ feeTotal?: number;
3958
+ fees?: Array<{
3959
+ id?: string;
3960
+ feeDefinitionId?: string | null;
3961
+ source?: 'auto' | 'override' | 'custom';
3962
+ name?: string;
3963
+ /**
3964
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
3965
+ */
3966
+ label?: string;
3967
+ kind?: 'percentage' | 'flat';
3968
+ rateBps?: number | null;
3969
+ /**
3970
+ * Integer minor units of `currency` (ISO 4217 exponent).
3971
+ */
3972
+ baseAmount?: number;
3973
+ /**
3974
+ * Integer minor units of `currency` (ISO 4217 exponent).
3975
+ */
3976
+ amount?: number;
3977
+ taxable?: boolean;
3978
+ /**
3979
+ * Integer minor units of `currency` (ISO 4217 exponent).
3980
+ */
3981
+ taxAmount?: number;
3982
+ appliesToOneTime?: boolean;
3983
+ appliesToSubscription?: boolean;
3984
+ }>;
3562
3985
  /**
3563
3986
  * Integer minor units of `currency` (ISO 4217 exponent).
3564
3987
  */
@@ -3886,6 +4309,37 @@ export declare class OrdersService {
3886
4309
  * Integer minor units of `currency` (ISO 4217 exponent).
3887
4310
  */
3888
4311
  shippingDiscountTotal?: number;
4312
+ /**
4313
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
4314
+ */
4315
+ feeTotal?: number;
4316
+ fees?: Array<{
4317
+ id?: string;
4318
+ feeDefinitionId?: string | null;
4319
+ source?: 'auto' | 'override' | 'custom';
4320
+ name?: string;
4321
+ /**
4322
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
4323
+ */
4324
+ label?: string;
4325
+ kind?: 'percentage' | 'flat';
4326
+ rateBps?: number | null;
4327
+ /**
4328
+ * Integer minor units of `currency` (ISO 4217 exponent).
4329
+ */
4330
+ baseAmount?: number;
4331
+ /**
4332
+ * Integer minor units of `currency` (ISO 4217 exponent).
4333
+ */
4334
+ amount?: number;
4335
+ taxable?: boolean;
4336
+ /**
4337
+ * Integer minor units of `currency` (ISO 4217 exponent).
4338
+ */
4339
+ taxAmount?: number;
4340
+ appliesToOneTime?: boolean;
4341
+ appliesToSubscription?: boolean;
4342
+ }>;
3889
4343
  /**
3890
4344
  * Integer minor units of `currency` (ISO 4217 exponent).
3891
4345
  */
@@ -4454,6 +4908,37 @@ export declare class OrdersService {
4454
4908
  * Integer minor units of `currency` (ISO 4217 exponent).
4455
4909
  */
4456
4910
  shippingDiscountTotal?: number;
4911
+ /**
4912
+ * Sum of the fees on this document, in minor units of `currency`. Already inside `total`.
4913
+ */
4914
+ feeTotal?: number;
4915
+ fees?: Array<{
4916
+ id?: string;
4917
+ feeDefinitionId?: string | null;
4918
+ source?: 'auto' | 'override' | 'custom';
4919
+ name?: string;
4920
+ /**
4921
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
4922
+ */
4923
+ label?: string;
4924
+ kind?: 'percentage' | 'flat';
4925
+ rateBps?: number | null;
4926
+ /**
4927
+ * Integer minor units of `currency` (ISO 4217 exponent).
4928
+ */
4929
+ baseAmount?: number;
4930
+ /**
4931
+ * Integer minor units of `currency` (ISO 4217 exponent).
4932
+ */
4933
+ amount?: number;
4934
+ taxable?: boolean;
4935
+ /**
4936
+ * Integer minor units of `currency` (ISO 4217 exponent).
4937
+ */
4938
+ taxAmount?: number;
4939
+ appliesToOneTime?: boolean;
4940
+ appliesToSubscription?: boolean;
4941
+ }>;
4457
4942
  /**
4458
4943
  * Integer minor units of `currency` (ISO 4217 exponent).
4459
4944
  */
@@ -4903,5 +5388,21 @@ export declare class OrdersService {
4903
5388
  hasMore?: boolean;
4904
5389
  };
4905
5390
  }>;
5391
+ /**
5392
+ * Send the customer an email this order already sent them, again: the same email, rendered from what it said the first time, to the same address. Use it when a buyer says they never got their confirmation, receipt or invoice. Only emails to the customer can be resent. It is sent even if the template has been switched off since. The new email is listed on the order like any other.
5393
+ * @param id
5394
+ * @param emailId
5395
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
5396
+ * @returns any Default Response
5397
+ * @throws ApiError
5398
+ */
5399
+ static postApiV1OrdersEmailsResend(id: string, emailId: string, xThrottleEnvironmentId?: string): CancelablePromise<{
5400
+ data: {
5401
+ /**
5402
+ * The new email.
5403
+ */
5404
+ id: string;
5405
+ };
5406
+ }>;
4906
5407
  }
4907
5408
  //# sourceMappingURL=OrdersService.d.ts.map