@usethrottle/api-client 6.3.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 +485 -0
  18. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  19. package/dist/generated/services/OrdersService.js +1 -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 +3 -3
@@ -191,6 +191,36 @@ export declare class SubscriptionsService {
191
191
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
192
192
  */
193
193
  renewalIssue?: any | null;
194
+ /**
195
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
196
+ */
197
+ fees?: Array<{
198
+ id?: string;
199
+ feeDefinitionId?: string | null;
200
+ source?: 'auto' | 'override' | 'custom';
201
+ name?: string;
202
+ /**
203
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
204
+ */
205
+ label?: string;
206
+ kind?: 'percentage' | 'flat';
207
+ rateBps?: number | null;
208
+ /**
209
+ * Integer minor units of `currency` (ISO 4217 exponent).
210
+ */
211
+ baseAmount?: number;
212
+ /**
213
+ * Integer minor units of `currency` (ISO 4217 exponent).
214
+ */
215
+ amount?: number;
216
+ taxable?: boolean;
217
+ /**
218
+ * Integer minor units of `currency` (ISO 4217 exponent).
219
+ */
220
+ taxAmount?: number;
221
+ appliesToOneTime?: boolean;
222
+ appliesToSubscription?: boolean;
223
+ }>;
194
224
  };
195
225
  meta?: {
196
226
  /**
@@ -317,6 +347,36 @@ export declare class SubscriptionsService {
317
347
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
318
348
  */
319
349
  renewalIssue?: any | null;
350
+ /**
351
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
352
+ */
353
+ fees?: Array<{
354
+ id?: string;
355
+ feeDefinitionId?: string | null;
356
+ source?: 'auto' | 'override' | 'custom';
357
+ name?: string;
358
+ /**
359
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
360
+ */
361
+ label?: string;
362
+ kind?: 'percentage' | 'flat';
363
+ rateBps?: number | null;
364
+ /**
365
+ * Integer minor units of `currency` (ISO 4217 exponent).
366
+ */
367
+ baseAmount?: number;
368
+ /**
369
+ * Integer minor units of `currency` (ISO 4217 exponent).
370
+ */
371
+ amount?: number;
372
+ taxable?: boolean;
373
+ /**
374
+ * Integer minor units of `currency` (ISO 4217 exponent).
375
+ */
376
+ taxAmount?: number;
377
+ appliesToOneTime?: boolean;
378
+ appliesToSubscription?: boolean;
379
+ }>;
320
380
  }>;
321
381
  meta?: {
322
382
  /**
@@ -434,6 +494,36 @@ export declare class SubscriptionsService {
434
494
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
435
495
  */
436
496
  renewalIssue?: any | null;
497
+ /**
498
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
499
+ */
500
+ fees?: Array<{
501
+ id?: string;
502
+ feeDefinitionId?: string | null;
503
+ source?: 'auto' | 'override' | 'custom';
504
+ name?: string;
505
+ /**
506
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
507
+ */
508
+ label?: string;
509
+ kind?: 'percentage' | 'flat';
510
+ rateBps?: number | null;
511
+ /**
512
+ * Integer minor units of `currency` (ISO 4217 exponent).
513
+ */
514
+ baseAmount?: number;
515
+ /**
516
+ * Integer minor units of `currency` (ISO 4217 exponent).
517
+ */
518
+ amount?: number;
519
+ taxable?: boolean;
520
+ /**
521
+ * Integer minor units of `currency` (ISO 4217 exponent).
522
+ */
523
+ taxAmount?: number;
524
+ appliesToOneTime?: boolean;
525
+ appliesToSubscription?: boolean;
526
+ }>;
437
527
  };
438
528
  meta?: {
439
529
  /**
@@ -589,6 +679,36 @@ export declare class SubscriptionsService {
589
679
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
590
680
  */
591
681
  renewalIssue?: any | null;
682
+ /**
683
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
684
+ */
685
+ fees?: Array<{
686
+ id?: string;
687
+ feeDefinitionId?: string | null;
688
+ source?: 'auto' | 'override' | 'custom';
689
+ name?: string;
690
+ /**
691
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
692
+ */
693
+ label?: string;
694
+ kind?: 'percentage' | 'flat';
695
+ rateBps?: number | null;
696
+ /**
697
+ * Integer minor units of `currency` (ISO 4217 exponent).
698
+ */
699
+ baseAmount?: number;
700
+ /**
701
+ * Integer minor units of `currency` (ISO 4217 exponent).
702
+ */
703
+ amount?: number;
704
+ taxable?: boolean;
705
+ /**
706
+ * Integer minor units of `currency` (ISO 4217 exponent).
707
+ */
708
+ taxAmount?: number;
709
+ appliesToOneTime?: boolean;
710
+ appliesToSubscription?: boolean;
711
+ }>;
592
712
  };
593
713
  meta?: {
594
714
  /**
@@ -732,6 +852,36 @@ export declare class SubscriptionsService {
732
852
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
733
853
  */
734
854
  renewalIssue?: any | null;
855
+ /**
856
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
857
+ */
858
+ fees?: Array<{
859
+ id?: string;
860
+ feeDefinitionId?: string | null;
861
+ source?: 'auto' | 'override' | 'custom';
862
+ name?: string;
863
+ /**
864
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
865
+ */
866
+ label?: string;
867
+ kind?: 'percentage' | 'flat';
868
+ rateBps?: number | null;
869
+ /**
870
+ * Integer minor units of `currency` (ISO 4217 exponent).
871
+ */
872
+ baseAmount?: number;
873
+ /**
874
+ * Integer minor units of `currency` (ISO 4217 exponent).
875
+ */
876
+ amount?: number;
877
+ taxable?: boolean;
878
+ /**
879
+ * Integer minor units of `currency` (ISO 4217 exponent).
880
+ */
881
+ taxAmount?: number;
882
+ appliesToOneTime?: boolean;
883
+ appliesToSubscription?: boolean;
884
+ }>;
735
885
  };
736
886
  meta?: {
737
887
  /**
@@ -849,6 +999,36 @@ export declare class SubscriptionsService {
849
999
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
850
1000
  */
851
1001
  renewalIssue?: any | null;
1002
+ /**
1003
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1004
+ */
1005
+ fees?: Array<{
1006
+ id?: string;
1007
+ feeDefinitionId?: string | null;
1008
+ source?: 'auto' | 'override' | 'custom';
1009
+ name?: string;
1010
+ /**
1011
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1012
+ */
1013
+ label?: string;
1014
+ kind?: 'percentage' | 'flat';
1015
+ rateBps?: number | null;
1016
+ /**
1017
+ * Integer minor units of `currency` (ISO 4217 exponent).
1018
+ */
1019
+ baseAmount?: number;
1020
+ /**
1021
+ * Integer minor units of `currency` (ISO 4217 exponent).
1022
+ */
1023
+ amount?: number;
1024
+ taxable?: boolean;
1025
+ /**
1026
+ * Integer minor units of `currency` (ISO 4217 exponent).
1027
+ */
1028
+ taxAmount?: number;
1029
+ appliesToOneTime?: boolean;
1030
+ appliesToSubscription?: boolean;
1031
+ }>;
852
1032
  };
853
1033
  meta?: {
854
1034
  /**
@@ -966,6 +1146,36 @@ export declare class SubscriptionsService {
966
1146
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
967
1147
  */
968
1148
  renewalIssue?: any | null;
1149
+ /**
1150
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1151
+ */
1152
+ fees?: Array<{
1153
+ id?: string;
1154
+ feeDefinitionId?: string | null;
1155
+ source?: 'auto' | 'override' | 'custom';
1156
+ name?: string;
1157
+ /**
1158
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1159
+ */
1160
+ label?: string;
1161
+ kind?: 'percentage' | 'flat';
1162
+ rateBps?: number | null;
1163
+ /**
1164
+ * Integer minor units of `currency` (ISO 4217 exponent).
1165
+ */
1166
+ baseAmount?: number;
1167
+ /**
1168
+ * Integer minor units of `currency` (ISO 4217 exponent).
1169
+ */
1170
+ amount?: number;
1171
+ taxable?: boolean;
1172
+ /**
1173
+ * Integer minor units of `currency` (ISO 4217 exponent).
1174
+ */
1175
+ taxAmount?: number;
1176
+ appliesToOneTime?: boolean;
1177
+ appliesToSubscription?: boolean;
1178
+ }>;
969
1179
  };
970
1180
  meta?: {
971
1181
  /**
@@ -1086,6 +1296,36 @@ export declare class SubscriptionsService {
1086
1296
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1087
1297
  */
1088
1298
  renewalIssue?: any | null;
1299
+ /**
1300
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1301
+ */
1302
+ fees?: Array<{
1303
+ id?: string;
1304
+ feeDefinitionId?: string | null;
1305
+ source?: 'auto' | 'override' | 'custom';
1306
+ name?: string;
1307
+ /**
1308
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1309
+ */
1310
+ label?: string;
1311
+ kind?: 'percentage' | 'flat';
1312
+ rateBps?: number | null;
1313
+ /**
1314
+ * Integer minor units of `currency` (ISO 4217 exponent).
1315
+ */
1316
+ baseAmount?: number;
1317
+ /**
1318
+ * Integer minor units of `currency` (ISO 4217 exponent).
1319
+ */
1320
+ amount?: number;
1321
+ taxable?: boolean;
1322
+ /**
1323
+ * Integer minor units of `currency` (ISO 4217 exponent).
1324
+ */
1325
+ taxAmount?: number;
1326
+ appliesToOneTime?: boolean;
1327
+ appliesToSubscription?: boolean;
1328
+ }>;
1089
1329
  };
1090
1330
  meta?: {
1091
1331
  /**
@@ -1203,6 +1443,36 @@ export declare class SubscriptionsService {
1203
1443
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1204
1444
  */
1205
1445
  renewalIssue?: any | null;
1446
+ /**
1447
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1448
+ */
1449
+ fees?: Array<{
1450
+ id?: string;
1451
+ feeDefinitionId?: string | null;
1452
+ source?: 'auto' | 'override' | 'custom';
1453
+ name?: string;
1454
+ /**
1455
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1456
+ */
1457
+ label?: string;
1458
+ kind?: 'percentage' | 'flat';
1459
+ rateBps?: number | null;
1460
+ /**
1461
+ * Integer minor units of `currency` (ISO 4217 exponent).
1462
+ */
1463
+ baseAmount?: number;
1464
+ /**
1465
+ * Integer minor units of `currency` (ISO 4217 exponent).
1466
+ */
1467
+ amount?: number;
1468
+ taxable?: boolean;
1469
+ /**
1470
+ * Integer minor units of `currency` (ISO 4217 exponent).
1471
+ */
1472
+ taxAmount?: number;
1473
+ appliesToOneTime?: boolean;
1474
+ appliesToSubscription?: boolean;
1475
+ }>;
1206
1476
  };
1207
1477
  meta?: {
1208
1478
  /**
@@ -1354,6 +1624,36 @@ export declare class SubscriptionsService {
1354
1624
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1355
1625
  */
1356
1626
  renewalIssue?: any | null;
1627
+ /**
1628
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1629
+ */
1630
+ fees?: Array<{
1631
+ id?: string;
1632
+ feeDefinitionId?: string | null;
1633
+ source?: 'auto' | 'override' | 'custom';
1634
+ name?: string;
1635
+ /**
1636
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1637
+ */
1638
+ label?: string;
1639
+ kind?: 'percentage' | 'flat';
1640
+ rateBps?: number | null;
1641
+ /**
1642
+ * Integer minor units of `currency` (ISO 4217 exponent).
1643
+ */
1644
+ baseAmount?: number;
1645
+ /**
1646
+ * Integer minor units of `currency` (ISO 4217 exponent).
1647
+ */
1648
+ amount?: number;
1649
+ taxable?: boolean;
1650
+ /**
1651
+ * Integer minor units of `currency` (ISO 4217 exponent).
1652
+ */
1653
+ taxAmount?: number;
1654
+ appliesToOneTime?: boolean;
1655
+ appliesToSubscription?: boolean;
1656
+ }>;
1357
1657
  proration?: {
1358
1658
  creditCents?: number;
1359
1659
  chargedCents?: number;
@@ -1494,6 +1794,36 @@ export declare class SubscriptionsService {
1494
1794
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1495
1795
  */
1496
1796
  renewalIssue?: any | null;
1797
+ /**
1798
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1799
+ */
1800
+ fees?: Array<{
1801
+ id?: string;
1802
+ feeDefinitionId?: string | null;
1803
+ source?: 'auto' | 'override' | 'custom';
1804
+ name?: string;
1805
+ /**
1806
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1807
+ */
1808
+ label?: string;
1809
+ kind?: 'percentage' | 'flat';
1810
+ rateBps?: number | null;
1811
+ /**
1812
+ * Integer minor units of `currency` (ISO 4217 exponent).
1813
+ */
1814
+ baseAmount?: number;
1815
+ /**
1816
+ * Integer minor units of `currency` (ISO 4217 exponent).
1817
+ */
1818
+ amount?: number;
1819
+ taxable?: boolean;
1820
+ /**
1821
+ * Integer minor units of `currency` (ISO 4217 exponent).
1822
+ */
1823
+ taxAmount?: number;
1824
+ appliesToOneTime?: boolean;
1825
+ appliesToSubscription?: boolean;
1826
+ }>;
1497
1827
  proration?: {
1498
1828
  creditCents?: number;
1499
1829
  chargedCents?: number;
@@ -1624,6 +1954,36 @@ export declare class SubscriptionsService {
1624
1954
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1625
1955
  */
1626
1956
  renewalIssue?: any | null;
1957
+ /**
1958
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
1959
+ */
1960
+ fees?: Array<{
1961
+ id?: string;
1962
+ feeDefinitionId?: string | null;
1963
+ source?: 'auto' | 'override' | 'custom';
1964
+ name?: string;
1965
+ /**
1966
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
1967
+ */
1968
+ label?: string;
1969
+ kind?: 'percentage' | 'flat';
1970
+ rateBps?: number | null;
1971
+ /**
1972
+ * Integer minor units of `currency` (ISO 4217 exponent).
1973
+ */
1974
+ baseAmount?: number;
1975
+ /**
1976
+ * Integer minor units of `currency` (ISO 4217 exponent).
1977
+ */
1978
+ amount?: number;
1979
+ taxable?: boolean;
1980
+ /**
1981
+ * Integer minor units of `currency` (ISO 4217 exponent).
1982
+ */
1983
+ taxAmount?: number;
1984
+ appliesToOneTime?: boolean;
1985
+ appliesToSubscription?: boolean;
1986
+ }>;
1627
1987
  };
1628
1988
  meta?: {
1629
1989
  /**
@@ -1751,6 +2111,36 @@ export declare class SubscriptionsService {
1751
2111
  * Read-only. Set by the renewal job when renewals are failing (system_error — including charge_unverified, a charge that has no final answer yet and is read back on each run), when a card was charged but the renewal could not be recorded (orphan_charge), or when a charge has had no final answer for 12 hours (payment_review). Charges are paused while orphan_charge or payment_review is set, and the manual retry, waive and immediate-change actions also refuse while a charge is unverified.
1752
2112
  */
1753
2113
  renewalIssue?: any | null;
2114
+ /**
2115
+ * The order fees renewals charge: a snapshot taken at signup (or added by the merchant), `removed` rows excluded. Each row is the frozen setting, not a charge: a flat fee shows its amount, a percentage fee its `rateBps` (amount 0). Returned by every subscription endpoint; stored rows are listed whatever the fees flag says (the flag decides whether renewals charge them).
2116
+ */
2117
+ fees?: Array<{
2118
+ id?: string;
2119
+ feeDefinitionId?: string | null;
2120
+ source?: 'auto' | 'override' | 'custom';
2121
+ name?: string;
2122
+ /**
2123
+ * Display text: `name`, plus the rate for a percentage fee, e.g. `Insurance fee (2%)`.
2124
+ */
2125
+ label?: string;
2126
+ kind?: 'percentage' | 'flat';
2127
+ rateBps?: number | null;
2128
+ /**
2129
+ * Integer minor units of `currency` (ISO 4217 exponent).
2130
+ */
2131
+ baseAmount?: number;
2132
+ /**
2133
+ * Integer minor units of `currency` (ISO 4217 exponent).
2134
+ */
2135
+ amount?: number;
2136
+ taxable?: boolean;
2137
+ /**
2138
+ * Integer minor units of `currency` (ISO 4217 exponent).
2139
+ */
2140
+ taxAmount?: number;
2141
+ appliesToOneTime?: boolean;
2142
+ appliesToSubscription?: boolean;
2143
+ }>;
1754
2144
  };
1755
2145
  meta?: {
1756
2146
  /**