@usethrottle/api-client 5.3.0 → 5.5.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 (30) hide show
  1. package/dist/generated/services/CartsService.d.ts +630 -0
  2. package/dist/generated/services/CartsService.d.ts.map +1 -1
  3. package/dist/generated/services/CartsService.js.map +1 -1
  4. package/dist/generated/services/CheckoutService.d.ts +8 -0
  5. package/dist/generated/services/CheckoutService.d.ts.map +1 -1
  6. package/dist/generated/services/CheckoutService.js +19 -0
  7. package/dist/generated/services/CheckoutService.js.map +1 -1
  8. package/dist/generated/services/CheckoutSessionsService.d.ts +10 -2
  9. package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
  10. package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
  11. package/dist/generated/services/DefaultService.d.ts +35 -35
  12. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  13. package/dist/generated/services/DefaultService.js +66 -66
  14. package/dist/generated/services/DefaultService.js.map +1 -1
  15. package/dist/generated/services/OAuthService.d.ts +1 -0
  16. package/dist/generated/services/OAuthService.d.ts.map +1 -1
  17. package/dist/generated/services/OAuthService.js.map +1 -1
  18. package/dist/generated/services/OrdersService.d.ts +514 -4
  19. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  20. package/dist/generated/services/OrdersService.js +14 -3
  21. package/dist/generated/services/OrdersService.js.map +1 -1
  22. package/dist/generated/services/QuotesService.d.ts +72 -0
  23. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  24. package/dist/generated/services/QuotesService.js +1 -0
  25. package/dist/generated/services/QuotesService.js.map +1 -1
  26. package/dist/generated/services/SubscriptionsService.d.ts +352 -265
  27. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  28. package/dist/generated/services/SubscriptionsService.js +1 -1
  29. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  30. package/package.json +1 -1
@@ -200,6 +200,7 @@ export declare class OrdersService {
200
200
  amount?: number;
201
201
  } | null;
202
202
  customerId?: string | null;
203
+ subscriptionIds?: Array<string>;
203
204
  subscriptionId?: string | null;
204
205
  customer?: {
205
206
  id?: string;
@@ -242,6 +243,24 @@ export declare class OrdersService {
242
243
  total?: number;
243
244
  imageUrl?: string | null;
244
245
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
246
+ subscriptionId?: string | null;
247
+ /**
248
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
249
+ */
250
+ recurring?: {
251
+ plan?: string;
252
+ planName?: string | null;
253
+ interval?: string;
254
+ intervalUnit?: string | null;
255
+ intervalCount?: number | null;
256
+ totalPayments?: number | null;
257
+ trialDays?: number;
258
+ /**
259
+ * Amount in cents (e.g. 1999 = $19.99)
260
+ */
261
+ amount?: number | null;
262
+ count?: number | null;
263
+ } | null;
245
264
  /**
246
265
  * Arbitrary key-value metadata
247
266
  */
@@ -271,7 +290,7 @@ export declare class OrdersService {
271
290
  * @param source
272
291
  * @param q Search order id, number, source, status, or metadata.
273
292
  * @param customerId
274
- * @param subscriptionId Return only the orders this subscription billed (exact match on `subscriptionId`, or on the legacy `metadata.subscription_id` pointer). Covers renewals, plan-change charges and the signup order.
293
+ * @param subscriptionId Return only the orders linked to this subscription: through one of their lines (every subscription a checkout creates), `subscriptionId`, or the legacy `metadata.subscription_id` pointer. Covers the signup order, renewals and plan-change charges.
275
294
  * @param createdAfter ISO 8601 lower bound on creation time, EXCLUSIVE (created_at > value).
276
295
  * @param createdBefore ISO 8601 upper bound on creation time, EXCLUSIVE (created_at < value).
277
296
  * @returns any Default Response
@@ -389,6 +408,7 @@ export declare class OrdersService {
389
408
  amount?: number;
390
409
  } | null;
391
410
  customerId?: string | null;
411
+ subscriptionIds?: Array<string>;
392
412
  subscriptionId?: string | null;
393
413
  customer?: {
394
414
  id?: string;
@@ -431,6 +451,24 @@ export declare class OrdersService {
431
451
  total?: number;
432
452
  imageUrl?: string | null;
433
453
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
454
+ subscriptionId?: string | null;
455
+ /**
456
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
457
+ */
458
+ recurring?: {
459
+ plan?: string;
460
+ planName?: string | null;
461
+ interval?: string;
462
+ intervalUnit?: string | null;
463
+ intervalCount?: number | null;
464
+ totalPayments?: number | null;
465
+ trialDays?: number;
466
+ /**
467
+ * Amount in cents (e.g. 1999 = $19.99)
468
+ */
469
+ amount?: number | null;
470
+ count?: number | null;
471
+ } | null;
434
472
  /**
435
473
  * Arbitrary key-value metadata
436
474
  */
@@ -460,7 +498,7 @@ export declare class OrdersService {
460
498
  * @param source
461
499
  * @param q Search order id, number, source, status, or metadata.
462
500
  * @param customerId
463
- * @param subscriptionId Return only the orders this subscription billed (exact match on `subscriptionId`, or on the legacy `metadata.subscription_id` pointer). Covers renewals, plan-change charges and the signup order.
501
+ * @param subscriptionId Return only the orders linked to this subscription: through one of their lines (every subscription a checkout creates), `subscriptionId`, or the legacy `metadata.subscription_id` pointer. Covers the signup order, renewals and plan-change charges.
464
502
  * @param createdAfter ISO 8601 lower bound on creation time, EXCLUSIVE (created_at > value).
465
503
  * @param createdBefore ISO 8601 upper bound on creation time, EXCLUSIVE (created_at < value).
466
504
  * @returns any Default Response
@@ -586,6 +624,7 @@ export declare class OrdersService {
586
624
  amount?: number;
587
625
  } | null;
588
626
  customerId?: string | null;
627
+ subscriptionIds?: Array<string>;
589
628
  subscriptionId?: string | null;
590
629
  customer?: {
591
630
  id?: string;
@@ -628,6 +667,24 @@ export declare class OrdersService {
628
667
  total?: number;
629
668
  imageUrl?: string | null;
630
669
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
670
+ subscriptionId?: string | null;
671
+ /**
672
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
673
+ */
674
+ recurring?: {
675
+ plan?: string;
676
+ planName?: string | null;
677
+ interval?: string;
678
+ intervalUnit?: string | null;
679
+ intervalCount?: number | null;
680
+ totalPayments?: number | null;
681
+ trialDays?: number;
682
+ /**
683
+ * Amount in cents (e.g. 1999 = $19.99)
684
+ */
685
+ amount?: number | null;
686
+ count?: number | null;
687
+ } | null;
631
688
  /**
632
689
  * Arbitrary key-value metadata
633
690
  */
@@ -817,6 +874,7 @@ export declare class OrdersService {
817
874
  amount?: number;
818
875
  } | null;
819
876
  customerId?: string | null;
877
+ subscriptionIds?: Array<string>;
820
878
  subscriptionId?: string | null;
821
879
  customer?: {
822
880
  id?: string;
@@ -859,6 +917,24 @@ export declare class OrdersService {
859
917
  total?: number;
860
918
  imageUrl?: string | null;
861
919
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
920
+ subscriptionId?: string | null;
921
+ /**
922
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
923
+ */
924
+ recurring?: {
925
+ plan?: string;
926
+ planName?: string | null;
927
+ interval?: string;
928
+ intervalUnit?: string | null;
929
+ intervalCount?: number | null;
930
+ totalPayments?: number | null;
931
+ trialDays?: number;
932
+ /**
933
+ * Amount in cents (e.g. 1999 = $19.99)
934
+ */
935
+ amount?: number | null;
936
+ count?: number | null;
937
+ } | null;
862
938
  /**
863
939
  * Arbitrary key-value metadata
864
940
  */
@@ -995,6 +1071,7 @@ export declare class OrdersService {
995
1071
  amount?: number;
996
1072
  } | null;
997
1073
  customerId?: string | null;
1074
+ subscriptionIds?: Array<string>;
998
1075
  subscriptionId?: string | null;
999
1076
  customer?: {
1000
1077
  id?: string;
@@ -1037,6 +1114,24 @@ export declare class OrdersService {
1037
1114
  total?: number;
1038
1115
  imageUrl?: string | null;
1039
1116
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1117
+ subscriptionId?: string | null;
1118
+ /**
1119
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
1120
+ */
1121
+ recurring?: {
1122
+ plan?: string;
1123
+ planName?: string | null;
1124
+ interval?: string;
1125
+ intervalUnit?: string | null;
1126
+ intervalCount?: number | null;
1127
+ totalPayments?: number | null;
1128
+ trialDays?: number;
1129
+ /**
1130
+ * Amount in cents (e.g. 1999 = $19.99)
1131
+ */
1132
+ amount?: number | null;
1133
+ count?: number | null;
1134
+ } | null;
1040
1135
  /**
1041
1136
  * Arbitrary key-value metadata
1042
1137
  */
@@ -1176,6 +1271,7 @@ export declare class OrdersService {
1176
1271
  amount?: number;
1177
1272
  } | null;
1178
1273
  customerId?: string | null;
1274
+ subscriptionIds?: Array<string>;
1179
1275
  subscriptionId?: string | null;
1180
1276
  customer?: {
1181
1277
  id?: string;
@@ -1218,6 +1314,24 @@ export declare class OrdersService {
1218
1314
  total?: number;
1219
1315
  imageUrl?: string | null;
1220
1316
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1317
+ subscriptionId?: string | null;
1318
+ /**
1319
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
1320
+ */
1321
+ recurring?: {
1322
+ plan?: string;
1323
+ planName?: string | null;
1324
+ interval?: string;
1325
+ intervalUnit?: string | null;
1326
+ intervalCount?: number | null;
1327
+ totalPayments?: number | null;
1328
+ trialDays?: number;
1329
+ /**
1330
+ * Amount in cents (e.g. 1999 = $19.99)
1331
+ */
1332
+ amount?: number | null;
1333
+ count?: number | null;
1334
+ } | null;
1221
1335
  /**
1222
1336
  * Arbitrary key-value metadata
1223
1337
  */
@@ -1357,6 +1471,7 @@ export declare class OrdersService {
1357
1471
  amount?: number;
1358
1472
  } | null;
1359
1473
  customerId?: string | null;
1474
+ subscriptionIds?: Array<string>;
1360
1475
  subscriptionId?: string | null;
1361
1476
  customer?: {
1362
1477
  id?: string;
@@ -1399,6 +1514,24 @@ export declare class OrdersService {
1399
1514
  total?: number;
1400
1515
  imageUrl?: string | null;
1401
1516
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1517
+ subscriptionId?: string | null;
1518
+ /**
1519
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
1520
+ */
1521
+ recurring?: {
1522
+ plan?: string;
1523
+ planName?: string | null;
1524
+ interval?: string;
1525
+ intervalUnit?: string | null;
1526
+ intervalCount?: number | null;
1527
+ totalPayments?: number | null;
1528
+ trialDays?: number;
1529
+ /**
1530
+ * Amount in cents (e.g. 1999 = $19.99)
1531
+ */
1532
+ amount?: number | null;
1533
+ count?: number | null;
1534
+ } | null;
1402
1535
  /**
1403
1536
  * Arbitrary key-value metadata
1404
1537
  */
@@ -1539,6 +1672,7 @@ export declare class OrdersService {
1539
1672
  amount?: number;
1540
1673
  } | null;
1541
1674
  customerId?: string | null;
1675
+ subscriptionIds?: Array<string>;
1542
1676
  subscriptionId?: string | null;
1543
1677
  customer?: {
1544
1678
  id?: string;
@@ -1581,6 +1715,24 @@ export declare class OrdersService {
1581
1715
  total?: number;
1582
1716
  imageUrl?: string | null;
1583
1717
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1718
+ subscriptionId?: string | null;
1719
+ /**
1720
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
1721
+ */
1722
+ recurring?: {
1723
+ plan?: string;
1724
+ planName?: string | null;
1725
+ interval?: string;
1726
+ intervalUnit?: string | null;
1727
+ intervalCount?: number | null;
1728
+ totalPayments?: number | null;
1729
+ trialDays?: number;
1730
+ /**
1731
+ * Amount in cents (e.g. 1999 = $19.99)
1732
+ */
1733
+ amount?: number | null;
1734
+ count?: number | null;
1735
+ } | null;
1584
1736
  /**
1585
1737
  * Arbitrary key-value metadata
1586
1738
  */
@@ -1730,6 +1882,7 @@ export declare class OrdersService {
1730
1882
  amount?: number;
1731
1883
  } | null;
1732
1884
  customerId?: string | null;
1885
+ subscriptionIds?: Array<string>;
1733
1886
  subscriptionId?: string | null;
1734
1887
  customer?: {
1735
1888
  id?: string;
@@ -1772,6 +1925,24 @@ export declare class OrdersService {
1772
1925
  total?: number;
1773
1926
  imageUrl?: string | null;
1774
1927
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1928
+ subscriptionId?: string | null;
1929
+ /**
1930
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
1931
+ */
1932
+ recurring?: {
1933
+ plan?: string;
1934
+ planName?: string | null;
1935
+ interval?: string;
1936
+ intervalUnit?: string | null;
1937
+ intervalCount?: number | null;
1938
+ totalPayments?: number | null;
1939
+ trialDays?: number;
1940
+ /**
1941
+ * Amount in cents (e.g. 1999 = $19.99)
1942
+ */
1943
+ amount?: number | null;
1944
+ count?: number | null;
1945
+ } | null;
1775
1946
  /**
1776
1947
  * Arbitrary key-value metadata
1777
1948
  */
@@ -1911,6 +2082,7 @@ export declare class OrdersService {
1911
2082
  amount?: number;
1912
2083
  } | null;
1913
2084
  customerId?: string | null;
2085
+ subscriptionIds?: Array<string>;
1914
2086
  subscriptionId?: string | null;
1915
2087
  customer?: {
1916
2088
  id?: string;
@@ -1953,6 +2125,24 @@ export declare class OrdersService {
1953
2125
  total?: number;
1954
2126
  imageUrl?: string | null;
1955
2127
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
2128
+ subscriptionId?: string | null;
2129
+ /**
2130
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
2131
+ */
2132
+ recurring?: {
2133
+ plan?: string;
2134
+ planName?: string | null;
2135
+ interval?: string;
2136
+ intervalUnit?: string | null;
2137
+ intervalCount?: number | null;
2138
+ totalPayments?: number | null;
2139
+ trialDays?: number;
2140
+ /**
2141
+ * Amount in cents (e.g. 1999 = $19.99)
2142
+ */
2143
+ amount?: number | null;
2144
+ count?: number | null;
2145
+ } | null;
1956
2146
  /**
1957
2147
  * Arbitrary key-value metadata
1958
2148
  */
@@ -2098,6 +2288,7 @@ export declare class OrdersService {
2098
2288
  amount?: number;
2099
2289
  } | null;
2100
2290
  customerId?: string | null;
2291
+ subscriptionIds?: Array<string>;
2101
2292
  subscriptionId?: string | null;
2102
2293
  customer?: {
2103
2294
  id?: string;
@@ -2140,6 +2331,24 @@ export declare class OrdersService {
2140
2331
  total?: number;
2141
2332
  imageUrl?: string | null;
2142
2333
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
2334
+ subscriptionId?: string | null;
2335
+ /**
2336
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
2337
+ */
2338
+ recurring?: {
2339
+ plan?: string;
2340
+ planName?: string | null;
2341
+ interval?: string;
2342
+ intervalUnit?: string | null;
2343
+ intervalCount?: number | null;
2344
+ totalPayments?: number | null;
2345
+ trialDays?: number;
2346
+ /**
2347
+ * Amount in cents (e.g. 1999 = $19.99)
2348
+ */
2349
+ amount?: number | null;
2350
+ count?: number | null;
2351
+ } | null;
2143
2352
  /**
2144
2353
  * Arbitrary key-value metadata
2145
2354
  */
@@ -2279,6 +2488,7 @@ export declare class OrdersService {
2279
2488
  amount?: number;
2280
2489
  } | null;
2281
2490
  customerId?: string | null;
2491
+ subscriptionIds?: Array<string>;
2282
2492
  subscriptionId?: string | null;
2283
2493
  customer?: {
2284
2494
  id?: string;
@@ -2321,6 +2531,24 @@ export declare class OrdersService {
2321
2531
  total?: number;
2322
2532
  imageUrl?: string | null;
2323
2533
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
2534
+ subscriptionId?: string | null;
2535
+ /**
2536
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
2537
+ */
2538
+ recurring?: {
2539
+ plan?: string;
2540
+ planName?: string | null;
2541
+ interval?: string;
2542
+ intervalUnit?: string | null;
2543
+ intervalCount?: number | null;
2544
+ totalPayments?: number | null;
2545
+ trialDays?: number;
2546
+ /**
2547
+ * Amount in cents (e.g. 1999 = $19.99)
2548
+ */
2549
+ amount?: number | null;
2550
+ count?: number | null;
2551
+ } | null;
2324
2552
  /**
2325
2553
  * Arbitrary key-value metadata
2326
2554
  */
@@ -2457,6 +2685,7 @@ export declare class OrdersService {
2457
2685
  amount?: number;
2458
2686
  } | null;
2459
2687
  customerId?: string | null;
2688
+ subscriptionIds?: Array<string>;
2460
2689
  subscriptionId?: string | null;
2461
2690
  customer?: {
2462
2691
  id?: string;
@@ -2499,6 +2728,24 @@ export declare class OrdersService {
2499
2728
  total?: number;
2500
2729
  imageUrl?: string | null;
2501
2730
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
2731
+ subscriptionId?: string | null;
2732
+ /**
2733
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
2734
+ */
2735
+ recurring?: {
2736
+ plan?: string;
2737
+ planName?: string | null;
2738
+ interval?: string;
2739
+ intervalUnit?: string | null;
2740
+ intervalCount?: number | null;
2741
+ totalPayments?: number | null;
2742
+ trialDays?: number;
2743
+ /**
2744
+ * Amount in cents (e.g. 1999 = $19.99)
2745
+ */
2746
+ amount?: number | null;
2747
+ count?: number | null;
2748
+ } | null;
2502
2749
  /**
2503
2750
  * Arbitrary key-value metadata
2504
2751
  */
@@ -2699,6 +2946,7 @@ export declare class OrdersService {
2699
2946
  amount?: number;
2700
2947
  } | null;
2701
2948
  customerId?: string | null;
2949
+ subscriptionIds?: Array<string>;
2702
2950
  subscriptionId?: string | null;
2703
2951
  customer?: {
2704
2952
  id?: string;
@@ -2741,6 +2989,24 @@ export declare class OrdersService {
2741
2989
  total?: number;
2742
2990
  imageUrl?: string | null;
2743
2991
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
2992
+ subscriptionId?: string | null;
2993
+ /**
2994
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
2995
+ */
2996
+ recurring?: {
2997
+ plan?: string;
2998
+ planName?: string | null;
2999
+ interval?: string;
3000
+ intervalUnit?: string | null;
3001
+ intervalCount?: number | null;
3002
+ totalPayments?: number | null;
3003
+ trialDays?: number;
3004
+ /**
3005
+ * Amount in cents (e.g. 1999 = $19.99)
3006
+ */
3007
+ amount?: number | null;
3008
+ count?: number | null;
3009
+ } | null;
2744
3010
  /**
2745
3011
  * Arbitrary key-value metadata
2746
3012
  */
@@ -2825,7 +3091,7 @@ export declare class OrdersService {
2825
3091
  * @param id
2826
3092
  * @param requestBody
2827
3093
  * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
2828
- * @returns any Default Response
3094
+ * @returns any The edit was applied and any money delta settled.
2829
3095
  * @throws ApiError
2830
3096
  */
2831
3097
  static patchApiV1OrdersLineItems(id: string, requestBody: {
@@ -2850,6 +3116,250 @@ export declare class OrdersService {
2850
3116
  unitPrice?: number;
2851
3117
  }>;
2852
3118
  remove?: Array<string>;
2853
- }, xThrottleEnvironmentId?: string): CancelablePromise<any>;
3119
+ }, xThrottleEnvironmentId?: string): CancelablePromise<{
3120
+ /**
3121
+ * The order as stored after the edit, with every line item, the money settled for it, and any tax warnings.
3122
+ */
3123
+ data: {
3124
+ id: string;
3125
+ workspaceId?: string;
3126
+ discountId?: string | null;
3127
+ discountCode?: string | null;
3128
+ orderNumber?: string;
3129
+ status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
3130
+ type?: 'one_time' | 'recurring' | 'mixed';
3131
+ paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired';
3132
+ source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
3133
+ currency?: string;
3134
+ /**
3135
+ * Amount in cents (e.g. 1999 = $19.99)
3136
+ */
3137
+ subtotal?: number;
3138
+ /**
3139
+ * Amount in cents (e.g. 1999 = $19.99)
3140
+ */
3141
+ taxTotal?: number;
3142
+ buyerVatNumber?: string | null;
3143
+ taxReverseCharge?: boolean;
3144
+ taxProviderMessages?: Array<{
3145
+ summary?: string;
3146
+ details?: string;
3147
+ citationCode?: string;
3148
+ refersTo?: string;
3149
+ severity?: string;
3150
+ source?: string;
3151
+ lineNumbers?: Array<string>;
3152
+ lineItemIds?: Array<string>;
3153
+ }>;
3154
+ /**
3155
+ * Amount in cents (e.g. 1999 = $19.99)
3156
+ */
3157
+ discountTotal?: number;
3158
+ /**
3159
+ * Amount in cents (e.g. 1999 = $19.99)
3160
+ */
3161
+ shippingTotal?: number;
3162
+ /**
3163
+ * Amount in cents (e.g. 1999 = $19.99)
3164
+ */
3165
+ total?: number;
3166
+ /**
3167
+ * Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
3168
+ */
3169
+ compAmount?: number;
3170
+ compReason?: string | null;
3171
+ compedAt?: string | null;
3172
+ compedBy?: string | null;
3173
+ onHold?: boolean;
3174
+ holdReason?: string | null;
3175
+ heldAt?: string | null;
3176
+ heldBy?: string | null;
3177
+ notes?: string | null;
3178
+ /**
3179
+ * Arbitrary key-value metadata
3180
+ */
3181
+ metadata?: Record<string, any>;
3182
+ billingAddress?: {
3183
+ firstName?: string;
3184
+ lastName?: string;
3185
+ /**
3186
+ * Optional. Business name for B2B addresses.
3187
+ */
3188
+ company?: string;
3189
+ addressLine1?: string;
3190
+ addressLine2?: string;
3191
+ city?: string;
3192
+ stateProvince?: string;
3193
+ postalCode?: string;
3194
+ /**
3195
+ * ISO 3166-1 alpha-2
3196
+ */
3197
+ countryCode?: string;
3198
+ phone?: string;
3199
+ email?: string;
3200
+ } | null;
3201
+ shippingAddress?: {
3202
+ firstName?: string;
3203
+ lastName?: string;
3204
+ /**
3205
+ * Optional. Business name for B2B addresses.
3206
+ */
3207
+ company?: string;
3208
+ addressLine1?: string;
3209
+ addressLine2?: string;
3210
+ city?: string;
3211
+ stateProvince?: string;
3212
+ postalCode?: string;
3213
+ /**
3214
+ * ISO 3166-1 alpha-2
3215
+ */
3216
+ countryCode?: string;
3217
+ phone?: string;
3218
+ email?: string;
3219
+ } | null;
3220
+ shippingMethod?: {
3221
+ methodId?: string;
3222
+ displayName?: string;
3223
+ carrier?: string | null;
3224
+ serviceCode?: string | null;
3225
+ amount?: number;
3226
+ } | null;
3227
+ customerId?: string | null;
3228
+ subscriptionId?: string | null;
3229
+ cancelledAt?: string | null;
3230
+ completedAt?: string | null;
3231
+ closedAt?: string | null;
3232
+ createdAt?: string;
3233
+ updatedAt?: string;
3234
+ applicationId?: string;
3235
+ environmentId?: string;
3236
+ cartId?: string | null;
3237
+ /**
3238
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
3239
+ */
3240
+ externalId?: string | null;
3241
+ /**
3242
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
3243
+ */
3244
+ externalCustomerId?: string | null;
3245
+ /**
3246
+ * The import that created this order; null otherwise.
3247
+ */
3248
+ importId?: string | null;
3249
+ /**
3250
+ * The buyer's IP address recorded at checkout.
3251
+ */
3252
+ ipAddress?: string | null;
3253
+ /**
3254
+ * The buyer's user agent recorded at checkout.
3255
+ */
3256
+ userAgent?: string | null;
3257
+ /**
3258
+ * Attribution snapshot copied from the checkout session when the order was created.
3259
+ */
3260
+ clientContext?: Record<string, any> | null;
3261
+ /**
3262
+ * Every line item on the order after the edit, not only the ones changed.
3263
+ */
3264
+ items: Array<{
3265
+ id?: string;
3266
+ type?: 'product' | 'subscription' | 'service' | 'ticket' | 'donation' | 'custom' | 'usage';
3267
+ referenceId?: string | null;
3268
+ name?: string;
3269
+ description?: string | null;
3270
+ /**
3271
+ * Amount in cents (e.g. 1999 = $19.99)
3272
+ */
3273
+ unitPrice?: number;
3274
+ quantity?: number;
3275
+ /**
3276
+ * Amount in cents (e.g. 1999 = $19.99)
3277
+ */
3278
+ subtotal?: number;
3279
+ /**
3280
+ * Amount in cents (e.g. 1999 = $19.99)
3281
+ */
3282
+ taxAmount?: number;
3283
+ /**
3284
+ * Amount in cents (e.g. 1999 = $19.99)
3285
+ */
3286
+ discountAmount?: number;
3287
+ /**
3288
+ * Amount in cents (e.g. 1999 = $19.99)
3289
+ */
3290
+ total?: number;
3291
+ imageUrl?: string | null;
3292
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
3293
+ subscriptionId?: string | null;
3294
+ /**
3295
+ * Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
3296
+ */
3297
+ recurring?: {
3298
+ plan?: string;
3299
+ planName?: string | null;
3300
+ interval?: string;
3301
+ intervalUnit?: string | null;
3302
+ intervalCount?: number | null;
3303
+ totalPayments?: number | null;
3304
+ trialDays?: number;
3305
+ /**
3306
+ * Amount in cents (e.g. 1999 = $19.99)
3307
+ */
3308
+ amount?: number | null;
3309
+ count?: number | null;
3310
+ } | null;
3311
+ /**
3312
+ * Arbitrary key-value metadata
3313
+ */
3314
+ metadata?: Record<string, any>;
3315
+ workspaceId?: string;
3316
+ applicationId?: string;
3317
+ orderId?: string;
3318
+ cartId?: string | null;
3319
+ position?: number;
3320
+ createdAt?: string;
3321
+ updatedAt?: string;
3322
+ }>;
3323
+ /**
3324
+ * The money the edit settled.
3325
+ */
3326
+ adjustment: {
3327
+ /**
3328
+ * Change in what the buyer owes, in minor units. On an order with a captured payment a positive delta was charged to the stored card and a negative one refunded; otherwise no money moved.
3329
+ */
3330
+ delta: number;
3331
+ /**
3332
+ * The order total before the edit, in minor units.
3333
+ */
3334
+ previousTotal: number;
3335
+ /**
3336
+ * The order total after the edit, in minor units.
3337
+ */
3338
+ newTotal: number;
3339
+ /**
3340
+ * The payment that charged a positive delta; null when nothing was charged.
3341
+ */
3342
+ chargedPaymentId?: string | null;
3343
+ /**
3344
+ * The payment a negative delta was refunded on; null when nothing was refunded.
3345
+ */
3346
+ refundedPaymentId?: string | null;
3347
+ /**
3348
+ * Set when refunding a negative delta failed. The line items were still changed; retry the refund from the order.
3349
+ */
3350
+ refundError?: {
3351
+ code?: string;
3352
+ message?: string;
3353
+ } | null;
3354
+ };
3355
+ /**
3356
+ * Present only when there is something to report. Notes from re-quoting tax with the tax provider (`taxMode: "app_based"`, e.g. Avalara) under the lenient tax fallback policy: `provider_fallback` (the provider could not answer, so your native tax rules priced the edit), `tax_address_missing` (there is no address to tax from, so no tax was charged), `tax_zero_from_provider` (the provider returned no tax for the address). Under the strict policy the same failures refuse the edit instead (503 / 422).
3357
+ */
3358
+ warnings?: Array<{
3359
+ code: string;
3360
+ message: string;
3361
+ }>;
3362
+ };
3363
+ }>;
2854
3364
  }
2855
3365
  //# sourceMappingURL=OrdersService.d.ts.map