@usethrottle/api-client 5.2.0 → 5.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.
- package/dist/generated/services/CartsService.d.ts +630 -0
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutService.d.ts +8 -0
- package/dist/generated/services/CheckoutService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutService.js +19 -0
- package/dist/generated/services/CheckoutService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +10 -2
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +35 -0
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +66 -0
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/OAuthService.d.ts +1 -0
- package/dist/generated/services/OAuthService.d.ts.map +1 -1
- package/dist/generated/services/OAuthService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +268 -2
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +2 -2
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +72 -0
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +1 -0
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +352 -265
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +1 -1
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +1 -0
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +1 -0
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- 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
|
|
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
|
|
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
|
*/
|