@usethrottle/api-client 5.28.1 → 5.29.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 (43) hide show
  1. package/dist/generated/services/ApplicationsService.d.ts +8 -8
  2. package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
  3. package/dist/generated/services/CartsService.d.ts +314 -38
  4. package/dist/generated/services/CartsService.d.ts.map +1 -1
  5. package/dist/generated/services/CartsService.js +8 -2
  6. package/dist/generated/services/CartsService.js.map +1 -1
  7. package/dist/generated/services/CheckoutSessionsService.d.ts +16 -1
  8. package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
  9. package/dist/generated/services/CheckoutSessionsService.js +1 -1
  10. package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
  11. package/dist/generated/services/CustomersService.d.ts +0 -4
  12. package/dist/generated/services/CustomersService.d.ts.map +1 -1
  13. package/dist/generated/services/CustomersService.js +1 -1
  14. package/dist/generated/services/CustomersService.js.map +1 -1
  15. package/dist/generated/services/DefaultService.d.ts +26 -5
  16. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  17. package/dist/generated/services/DefaultService.js +4 -8
  18. package/dist/generated/services/DefaultService.js.map +1 -1
  19. package/dist/generated/services/DiscountsService.d.ts +45 -21
  20. package/dist/generated/services/DiscountsService.d.ts.map +1 -1
  21. package/dist/generated/services/DiscountsService.js.map +1 -1
  22. package/dist/generated/services/ExtensionsService.d.ts +46 -0
  23. package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
  24. package/dist/generated/services/ExtensionsService.js.map +1 -1
  25. package/dist/generated/services/OrdersService.d.ts +103 -8
  26. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  27. package/dist/generated/services/OrdersService.js +3 -3
  28. package/dist/generated/services/OrdersService.js.map +1 -1
  29. package/dist/generated/services/PaymentsService.d.ts +0 -4
  30. package/dist/generated/services/PaymentsService.d.ts.map +1 -1
  31. package/dist/generated/services/PaymentsService.js +1 -1
  32. package/dist/generated/services/PaymentsService.js.map +1 -1
  33. package/dist/generated/services/QuotesService.d.ts +0 -4
  34. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  35. package/dist/generated/services/QuotesService.js +2 -2
  36. package/dist/generated/services/QuotesService.js.map +1 -1
  37. package/dist/generated/services/SubscriptionsService.d.ts +60 -4
  38. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  39. package/dist/generated/services/SubscriptionsService.js +1 -1
  40. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  41. package/dist/generated/services/WebhooksOutboundService.d.ts +3 -3
  42. package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
  43. package/package.json +3 -3
@@ -208,6 +208,8 @@ export declare class OrdersService {
208
208
  workspaceId?: string;
209
209
  discountId?: string | null;
210
210
  discountCode?: string | null;
211
+ shippingDiscountId?: string | null;
212
+ shippingDiscountCode?: string | null;
211
213
  orderNumber?: string;
212
214
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
213
215
  displayStatus?: string;
@@ -248,6 +250,10 @@ export declare class OrdersService {
248
250
  * Integer minor units of `currency` (ISO 4217 exponent).
249
251
  */
250
252
  shippingTotal?: number;
253
+ /**
254
+ * Integer minor units of `currency` (ISO 4217 exponent).
255
+ */
256
+ shippingDiscountTotal?: number;
251
257
  /**
252
258
  * Integer minor units of `currency` (ISO 4217 exponent).
253
259
  */
@@ -463,6 +469,8 @@ export declare class OrdersService {
463
469
  workspaceId?: string;
464
470
  discountId?: string | null;
465
471
  discountCode?: string | null;
472
+ shippingDiscountId?: string | null;
473
+ shippingDiscountCode?: string | null;
466
474
  orderNumber?: string;
467
475
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
468
476
  displayStatus?: string;
@@ -503,6 +511,10 @@ export declare class OrdersService {
503
511
  * Integer minor units of `currency` (ISO 4217 exponent).
504
512
  */
505
513
  shippingTotal?: number;
514
+ /**
515
+ * Integer minor units of `currency` (ISO 4217 exponent).
516
+ */
517
+ shippingDiscountTotal?: number;
506
518
  /**
507
519
  * Integer minor units of `currency` (ISO 4217 exponent).
508
520
  */
@@ -726,6 +738,8 @@ export declare class OrdersService {
726
738
  workspaceId?: string;
727
739
  discountId?: string | null;
728
740
  discountCode?: string | null;
741
+ shippingDiscountId?: string | null;
742
+ shippingDiscountCode?: string | null;
729
743
  orderNumber?: string;
730
744
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
731
745
  displayStatus?: string;
@@ -766,6 +780,10 @@ export declare class OrdersService {
766
780
  * Integer minor units of `currency` (ISO 4217 exponent).
767
781
  */
768
782
  shippingTotal?: number;
783
+ /**
784
+ * Integer minor units of `currency` (ISO 4217 exponent).
785
+ */
786
+ shippingDiscountTotal?: number;
769
787
  /**
770
788
  * Integer minor units of `currency` (ISO 4217 exponent).
771
789
  */
@@ -1026,6 +1044,8 @@ export declare class OrdersService {
1026
1044
  workspaceId?: string;
1027
1045
  discountId?: string | null;
1028
1046
  discountCode?: string | null;
1047
+ shippingDiscountId?: string | null;
1048
+ shippingDiscountCode?: string | null;
1029
1049
  orderNumber?: string;
1030
1050
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
1031
1051
  displayStatus?: string;
@@ -1066,6 +1086,10 @@ export declare class OrdersService {
1066
1086
  * Integer minor units of `currency` (ISO 4217 exponent).
1067
1087
  */
1068
1088
  shippingTotal?: number;
1089
+ /**
1090
+ * Integer minor units of `currency` (ISO 4217 exponent).
1091
+ */
1092
+ shippingDiscountTotal?: number;
1069
1093
  /**
1070
1094
  * Integer minor units of `currency` (ISO 4217 exponent).
1071
1095
  */
@@ -1277,6 +1301,8 @@ export declare class OrdersService {
1277
1301
  workspaceId?: string;
1278
1302
  discountId?: string | null;
1279
1303
  discountCode?: string | null;
1304
+ shippingDiscountId?: string | null;
1305
+ shippingDiscountCode?: string | null;
1280
1306
  orderNumber?: string;
1281
1307
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
1282
1308
  displayStatus?: string;
@@ -1317,6 +1343,10 @@ export declare class OrdersService {
1317
1343
  * Integer minor units of `currency` (ISO 4217 exponent).
1318
1344
  */
1319
1345
  shippingTotal?: number;
1346
+ /**
1347
+ * Integer minor units of `currency` (ISO 4217 exponent).
1348
+ */
1349
+ shippingDiscountTotal?: number;
1320
1350
  /**
1321
1351
  * Integer minor units of `currency` (ISO 4217 exponent).
1322
1352
  */
@@ -1523,6 +1553,8 @@ export declare class OrdersService {
1523
1553
  workspaceId?: string;
1524
1554
  discountId?: string | null;
1525
1555
  discountCode?: string | null;
1556
+ shippingDiscountId?: string | null;
1557
+ shippingDiscountCode?: string | null;
1526
1558
  orderNumber?: string;
1527
1559
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
1528
1560
  displayStatus?: string;
@@ -1563,6 +1595,10 @@ export declare class OrdersService {
1563
1595
  * Integer minor units of `currency` (ISO 4217 exponent).
1564
1596
  */
1565
1597
  shippingTotal?: number;
1598
+ /**
1599
+ * Integer minor units of `currency` (ISO 4217 exponent).
1600
+ */
1601
+ shippingDiscountTotal?: number;
1566
1602
  /**
1567
1603
  * Integer minor units of `currency` (ISO 4217 exponent).
1568
1604
  */
@@ -1769,6 +1805,8 @@ export declare class OrdersService {
1769
1805
  workspaceId?: string;
1770
1806
  discountId?: string | null;
1771
1807
  discountCode?: string | null;
1808
+ shippingDiscountId?: string | null;
1809
+ shippingDiscountCode?: string | null;
1772
1810
  orderNumber?: string;
1773
1811
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
1774
1812
  displayStatus?: string;
@@ -1809,6 +1847,10 @@ export declare class OrdersService {
1809
1847
  * Integer minor units of `currency` (ISO 4217 exponent).
1810
1848
  */
1811
1849
  shippingTotal?: number;
1850
+ /**
1851
+ * Integer minor units of `currency` (ISO 4217 exponent).
1852
+ */
1853
+ shippingDiscountTotal?: number;
1812
1854
  /**
1813
1855
  * Integer minor units of `currency` (ISO 4217 exponent).
1814
1856
  */
@@ -2016,6 +2058,8 @@ export declare class OrdersService {
2016
2058
  workspaceId?: string;
2017
2059
  discountId?: string | null;
2018
2060
  discountCode?: string | null;
2061
+ shippingDiscountId?: string | null;
2062
+ shippingDiscountCode?: string | null;
2019
2063
  orderNumber?: string;
2020
2064
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
2021
2065
  displayStatus?: string;
@@ -2056,6 +2100,10 @@ export declare class OrdersService {
2056
2100
  * Integer minor units of `currency` (ISO 4217 exponent).
2057
2101
  */
2058
2102
  shippingTotal?: number;
2103
+ /**
2104
+ * Integer minor units of `currency` (ISO 4217 exponent).
2105
+ */
2106
+ shippingDiscountTotal?: number;
2059
2107
  /**
2060
2108
  * Integer minor units of `currency` (ISO 4217 exponent).
2061
2109
  */
@@ -2272,6 +2320,8 @@ export declare class OrdersService {
2272
2320
  workspaceId?: string;
2273
2321
  discountId?: string | null;
2274
2322
  discountCode?: string | null;
2323
+ shippingDiscountId?: string | null;
2324
+ shippingDiscountCode?: string | null;
2275
2325
  orderNumber?: string;
2276
2326
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
2277
2327
  displayStatus?: string;
@@ -2312,6 +2362,10 @@ export declare class OrdersService {
2312
2362
  * Integer minor units of `currency` (ISO 4217 exponent).
2313
2363
  */
2314
2364
  shippingTotal?: number;
2365
+ /**
2366
+ * Integer minor units of `currency` (ISO 4217 exponent).
2367
+ */
2368
+ shippingDiscountTotal?: number;
2315
2369
  /**
2316
2370
  * Integer minor units of `currency` (ISO 4217 exponent).
2317
2371
  */
@@ -2518,6 +2572,8 @@ export declare class OrdersService {
2518
2572
  workspaceId?: string;
2519
2573
  discountId?: string | null;
2520
2574
  discountCode?: string | null;
2575
+ shippingDiscountId?: string | null;
2576
+ shippingDiscountCode?: string | null;
2521
2577
  orderNumber?: string;
2522
2578
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
2523
2579
  displayStatus?: string;
@@ -2558,6 +2614,10 @@ export declare class OrdersService {
2558
2614
  * Integer minor units of `currency` (ISO 4217 exponent).
2559
2615
  */
2560
2616
  shippingTotal?: number;
2617
+ /**
2618
+ * Integer minor units of `currency` (ISO 4217 exponent).
2619
+ */
2620
+ shippingDiscountTotal?: number;
2561
2621
  /**
2562
2622
  * Integer minor units of `currency` (ISO 4217 exponent).
2563
2623
  */
@@ -2770,6 +2830,8 @@ export declare class OrdersService {
2770
2830
  workspaceId?: string;
2771
2831
  discountId?: string | null;
2772
2832
  discountCode?: string | null;
2833
+ shippingDiscountId?: string | null;
2834
+ shippingDiscountCode?: string | null;
2773
2835
  orderNumber?: string;
2774
2836
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
2775
2837
  displayStatus?: string;
@@ -2810,6 +2872,10 @@ export declare class OrdersService {
2810
2872
  * Integer minor units of `currency` (ISO 4217 exponent).
2811
2873
  */
2812
2874
  shippingTotal?: number;
2875
+ /**
2876
+ * Integer minor units of `currency` (ISO 4217 exponent).
2877
+ */
2878
+ shippingDiscountTotal?: number;
2813
2879
  /**
2814
2880
  * Integer minor units of `currency` (ISO 4217 exponent).
2815
2881
  */
@@ -3016,6 +3082,8 @@ export declare class OrdersService {
3016
3082
  workspaceId?: string;
3017
3083
  discountId?: string | null;
3018
3084
  discountCode?: string | null;
3085
+ shippingDiscountId?: string | null;
3086
+ shippingDiscountCode?: string | null;
3019
3087
  orderNumber?: string;
3020
3088
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
3021
3089
  displayStatus?: string;
@@ -3056,6 +3124,10 @@ export declare class OrdersService {
3056
3124
  * Integer minor units of `currency` (ISO 4217 exponent).
3057
3125
  */
3058
3126
  shippingTotal?: number;
3127
+ /**
3128
+ * Integer minor units of `currency` (ISO 4217 exponent).
3129
+ */
3130
+ shippingDiscountTotal?: number;
3059
3131
  /**
3060
3132
  * Integer minor units of `currency` (ISO 4217 exponent).
3061
3133
  */
@@ -3259,6 +3331,8 @@ export declare class OrdersService {
3259
3331
  workspaceId?: string;
3260
3332
  discountId?: string | null;
3261
3333
  discountCode?: string | null;
3334
+ shippingDiscountId?: string | null;
3335
+ shippingDiscountCode?: string | null;
3262
3336
  orderNumber?: string;
3263
3337
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
3264
3338
  displayStatus?: string;
@@ -3299,6 +3373,10 @@ export declare class OrdersService {
3299
3373
  * Integer minor units of `currency` (ISO 4217 exponent).
3300
3374
  */
3301
3375
  shippingTotal?: number;
3376
+ /**
3377
+ * Integer minor units of `currency` (ISO 4217 exponent).
3378
+ */
3379
+ shippingDiscountTotal?: number;
3302
3380
  /**
3303
3381
  * Integer minor units of `currency` (ISO 4217 exponent).
3304
3382
  */
@@ -3566,6 +3644,8 @@ export declare class OrdersService {
3566
3644
  workspaceId?: string;
3567
3645
  discountId?: string | null;
3568
3646
  discountCode?: string | null;
3647
+ shippingDiscountId?: string | null;
3648
+ shippingDiscountCode?: string | null;
3569
3649
  orderNumber?: string;
3570
3650
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
3571
3651
  displayStatus?: string;
@@ -3606,6 +3686,10 @@ export declare class OrdersService {
3606
3686
  * Integer minor units of `currency` (ISO 4217 exponent).
3607
3687
  */
3608
3688
  shippingTotal?: number;
3689
+ /**
3690
+ * Integer minor units of `currency` (ISO 4217 exponent).
3691
+ */
3692
+ shippingDiscountTotal?: number;
3609
3693
  /**
3610
3694
  * Integer minor units of `currency` (ISO 4217 exponent).
3611
3695
  */
@@ -3909,17 +3993,17 @@ export declare class OrdersService {
3909
3993
  /**
3910
3994
  * Start a card payment the merchant types in for the customer (a mail or telephone order) on a draft order built in the dashboard. Returns a 30-minute `embedUrl` that only the Throttle dashboard can show; the secure card form there charges the order as a MOTO transaction and the card never reaches Throttle. The card is saved to the order's customer when `saveCard` is true or the order has a subscription line (renewals charge it). Cancels any open payment link first. An API key needs both `orders:write` and `checkout_sessions:write`.
3911
3995
  * @param id
3912
- * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
3913
3996
  * @param requestBody
3997
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
3914
3998
  * @returns any Default Response
3915
3999
  * @throws ApiError
3916
4000
  */
3917
- static postApiV1OrdersCardEntry(id: string, xThrottleEnvironmentId?: string, requestBody?: {
4001
+ static postApiV1OrdersCardEntry(id: string, requestBody: {
3918
4002
  /**
3919
4003
  * Save the card to the order's customer for future orders. Default false; always true when the order has a subscription line.
3920
4004
  */
3921
4005
  saveCard?: boolean;
3922
- }): CancelablePromise<{
4006
+ }, xThrottleEnvironmentId?: string): CancelablePromise<{
3923
4007
  data?: {
3924
4008
  sessionId?: string;
3925
4009
  /**
@@ -3932,7 +4016,16 @@ export declare class OrdersService {
3932
4016
  */
3933
4017
  saveCard?: boolean;
3934
4018
  };
3935
- meta?: Record<string, any>;
4019
+ meta?: {
4020
+ /**
4021
+ * `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
4022
+ */
4023
+ requestId?: string;
4024
+ pagination?: {
4025
+ cursor?: string | null;
4026
+ hasMore?: boolean;
4027
+ };
4028
+ };
3936
4029
  }>;
3937
4030
  /**
3938
4031
  * Issue a Net-N invoice for a draft order built with `POST /orders/from-cart`, accepting the Invoice Terms on the buyer's behalf, and move the order to processing. Cancels any payment link first. Requires an active Invoice Terms connector. An API key needs both `payments:write` and `orders:write`.
@@ -4053,6 +4146,8 @@ export declare class OrdersService {
4053
4146
  workspaceId?: string;
4054
4147
  discountId?: string | null;
4055
4148
  discountCode?: string | null;
4149
+ shippingDiscountId?: string | null;
4150
+ shippingDiscountCode?: string | null;
4056
4151
  orderNumber?: string;
4057
4152
  status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
4058
4153
  type?: 'one_time' | 'recurring' | 'mixed';
@@ -4087,6 +4182,10 @@ export declare class OrdersService {
4087
4182
  * Integer minor units of `currency` (ISO 4217 exponent).
4088
4183
  */
4089
4184
  shippingTotal?: number;
4185
+ /**
4186
+ * Integer minor units of `currency` (ISO 4217 exponent).
4187
+ */
4188
+ shippingDiscountTotal?: number;
4090
4189
  /**
4091
4190
  * Integer minor units of `currency` (ISO 4217 exponent).
4092
4191
  */
@@ -4390,10 +4489,6 @@ export declare class OrdersService {
4390
4489
  url?: string | null;
4391
4490
  }>;
4392
4491
  meta: {
4393
- /**
4394
- * `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
4395
- */
4396
- requestId?: string;
4397
4492
  pagination?: {
4398
4493
  cursor?: string | null;
4399
4494
  hasMore?: boolean;