@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
|
@@ -25,9 +25,21 @@ export declare class SubscriptionsService {
|
|
|
25
25
|
*/
|
|
26
26
|
planName?: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
29
29
|
*/
|
|
30
30
|
interval?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Cadence unit. Send with intervalCount instead of, or together with, interval.
|
|
33
|
+
*/
|
|
34
|
+
intervalUnit?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Cadence count: every N units. At most one year (8760 hours, 365 days, 52 weeks, 12 months).
|
|
37
|
+
*/
|
|
38
|
+
intervalCount?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Makes this an installment plan of exactly this many payments (2 to 60). Cannot be combined with trialEnd or changed later.
|
|
41
|
+
*/
|
|
42
|
+
totalPayments?: number;
|
|
31
43
|
/**
|
|
32
44
|
* Subscription amount in the smallest currency unit (e.g. cents)
|
|
33
45
|
*/
|
|
@@ -56,18 +68,6 @@ export declare class SubscriptionsService {
|
|
|
56
68
|
* The order that paid for the first period. Links the two in both directions: the order gets `subscriptionId` (and the legacy `metadata.subscription_id`), and this subscription's first invoice gets `orderId`. Use this when you charged the signup yourself and created the subscription afterwards. 404 if the order does not exist in this application and environment.
|
|
57
69
|
*/
|
|
58
70
|
orderId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Cadence unit. Send with intervalCount instead of, or together with, interval.
|
|
61
|
-
*/
|
|
62
|
-
intervalUnit?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Cadence count: every N units. At most one year (8760 hours, 365 days, 52 weeks, 12 months).
|
|
65
|
-
*/
|
|
66
|
-
intervalCount?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Makes this an installment plan of exactly this many payments (2 to 60). Cannot be combined with trialEnd or changed later.
|
|
69
|
-
*/
|
|
70
|
-
totalPayments?: number;
|
|
71
71
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
72
72
|
data?: {
|
|
73
73
|
id?: string;
|
|
@@ -75,7 +75,30 @@ export declare class SubscriptionsService {
|
|
|
75
75
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
76
76
|
planReference?: string;
|
|
77
77
|
planName?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
80
|
+
*/
|
|
78
81
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
82
|
+
/**
|
|
83
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
84
|
+
*/
|
|
85
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
86
|
+
intervalCount?: number | null;
|
|
87
|
+
billingAnchorAt?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
90
|
+
*/
|
|
91
|
+
totalPayments?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
94
|
+
*/
|
|
95
|
+
paymentsMade?: number;
|
|
96
|
+
completedAt?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
99
|
+
*/
|
|
100
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
101
|
+
pendingIntervalCount?: number | null;
|
|
79
102
|
/**
|
|
80
103
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
81
104
|
*/
|
|
@@ -108,25 +131,9 @@ export declare class SubscriptionsService {
|
|
|
108
131
|
company?: string | null;
|
|
109
132
|
} | null;
|
|
110
133
|
/**
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
114
|
-
intervalCount?: number | null;
|
|
115
|
-
billingAnchorAt?: string | null;
|
|
116
|
-
/**
|
|
117
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
118
|
-
*/
|
|
119
|
-
totalPayments?: number | null;
|
|
120
|
-
/**
|
|
121
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
122
|
-
*/
|
|
123
|
-
paymentsMade?: number;
|
|
124
|
-
completedAt?: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
134
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
127
135
|
*/
|
|
128
|
-
|
|
129
|
-
pendingIntervalCount?: number | null;
|
|
136
|
+
taxCategory?: string | null;
|
|
130
137
|
/**
|
|
131
138
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
132
139
|
*/
|
|
@@ -151,7 +158,7 @@ export declare class SubscriptionsService {
|
|
|
151
158
|
* @param customerId
|
|
152
159
|
* @param externalCustomerId Filter by the merchant's own customer ID (the value passed as externalId on customer creation). Server resolves to the throttle customerId before filtering. Mutually exclusive with customerId.
|
|
153
160
|
* @param status
|
|
154
|
-
* @param interval
|
|
161
|
+
* @param interval A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
155
162
|
* @param installment true: only installment plans; false: only ongoing subscriptions
|
|
156
163
|
* @param q Search subscription id, customer id, plan reference, plan name, status, interval, and metadata.
|
|
157
164
|
* @param createdAfter ISO 8601 lower bound on creation time, EXCLUSIVE (created_at > value).
|
|
@@ -166,7 +173,30 @@ export declare class SubscriptionsService {
|
|
|
166
173
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
167
174
|
planReference?: string;
|
|
168
175
|
planName?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
178
|
+
*/
|
|
169
179
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
180
|
+
/**
|
|
181
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
182
|
+
*/
|
|
183
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
184
|
+
intervalCount?: number | null;
|
|
185
|
+
billingAnchorAt?: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
188
|
+
*/
|
|
189
|
+
totalPayments?: number | null;
|
|
190
|
+
/**
|
|
191
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
192
|
+
*/
|
|
193
|
+
paymentsMade?: number;
|
|
194
|
+
completedAt?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
197
|
+
*/
|
|
198
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
199
|
+
pendingIntervalCount?: number | null;
|
|
170
200
|
/**
|
|
171
201
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
172
202
|
*/
|
|
@@ -199,25 +229,9 @@ export declare class SubscriptionsService {
|
|
|
199
229
|
company?: string | null;
|
|
200
230
|
} | null;
|
|
201
231
|
/**
|
|
202
|
-
*
|
|
203
|
-
*/
|
|
204
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
205
|
-
intervalCount?: number | null;
|
|
206
|
-
billingAnchorAt?: string | null;
|
|
207
|
-
/**
|
|
208
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
209
|
-
*/
|
|
210
|
-
totalPayments?: number | null;
|
|
211
|
-
/**
|
|
212
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
213
|
-
*/
|
|
214
|
-
paymentsMade?: number;
|
|
215
|
-
completedAt?: string | null;
|
|
216
|
-
/**
|
|
217
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
232
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
218
233
|
*/
|
|
219
|
-
|
|
220
|
-
pendingIntervalCount?: number | null;
|
|
234
|
+
taxCategory?: string | null;
|
|
221
235
|
/**
|
|
222
236
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
223
237
|
*/
|
|
@@ -248,7 +262,30 @@ export declare class SubscriptionsService {
|
|
|
248
262
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
249
263
|
planReference?: string;
|
|
250
264
|
planName?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
267
|
+
*/
|
|
251
268
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
269
|
+
/**
|
|
270
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
271
|
+
*/
|
|
272
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
273
|
+
intervalCount?: number | null;
|
|
274
|
+
billingAnchorAt?: string | null;
|
|
275
|
+
/**
|
|
276
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
277
|
+
*/
|
|
278
|
+
totalPayments?: number | null;
|
|
279
|
+
/**
|
|
280
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
281
|
+
*/
|
|
282
|
+
paymentsMade?: number;
|
|
283
|
+
completedAt?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
286
|
+
*/
|
|
287
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
288
|
+
pendingIntervalCount?: number | null;
|
|
252
289
|
/**
|
|
253
290
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
254
291
|
*/
|
|
@@ -281,25 +318,9 @@ export declare class SubscriptionsService {
|
|
|
281
318
|
company?: string | null;
|
|
282
319
|
} | null;
|
|
283
320
|
/**
|
|
284
|
-
*
|
|
285
|
-
*/
|
|
286
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
287
|
-
intervalCount?: number | null;
|
|
288
|
-
billingAnchorAt?: string | null;
|
|
289
|
-
/**
|
|
290
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
291
|
-
*/
|
|
292
|
-
totalPayments?: number | null;
|
|
293
|
-
/**
|
|
294
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
295
|
-
*/
|
|
296
|
-
paymentsMade?: number;
|
|
297
|
-
completedAt?: string | null;
|
|
298
|
-
/**
|
|
299
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
321
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
300
322
|
*/
|
|
301
|
-
|
|
302
|
-
pendingIntervalCount?: number | null;
|
|
323
|
+
taxCategory?: string | null;
|
|
303
324
|
/**
|
|
304
325
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
305
326
|
*/
|
|
@@ -327,13 +348,10 @@ export declare class SubscriptionsService {
|
|
|
327
348
|
static patchApiV1Subscriptions(id: string, requestBody: {
|
|
328
349
|
planReference?: string;
|
|
329
350
|
planName?: string;
|
|
330
|
-
interval?: string;
|
|
331
351
|
/**
|
|
332
|
-
*
|
|
352
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
333
353
|
*/
|
|
334
|
-
|
|
335
|
-
taxAddress?: any | null;
|
|
336
|
-
metadata?: Record<string, any>;
|
|
354
|
+
interval?: string;
|
|
337
355
|
/**
|
|
338
356
|
* Cadence unit. Send with intervalCount instead of, or together with, interval.
|
|
339
357
|
*/
|
|
@@ -342,6 +360,12 @@ export declare class SubscriptionsService {
|
|
|
342
360
|
* Cadence count: every N units. At most one year (8760 hours, 365 days, 52 weeks, 12 months).
|
|
343
361
|
*/
|
|
344
362
|
intervalCount?: number;
|
|
363
|
+
/**
|
|
364
|
+
* Amount in cents
|
|
365
|
+
*/
|
|
366
|
+
amount?: number;
|
|
367
|
+
taxAddress?: any | null;
|
|
368
|
+
metadata?: Record<string, any>;
|
|
345
369
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
346
370
|
data?: {
|
|
347
371
|
id?: string;
|
|
@@ -349,7 +373,30 @@ export declare class SubscriptionsService {
|
|
|
349
373
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
350
374
|
planReference?: string;
|
|
351
375
|
planName?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
378
|
+
*/
|
|
352
379
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
380
|
+
/**
|
|
381
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
382
|
+
*/
|
|
383
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
384
|
+
intervalCount?: number | null;
|
|
385
|
+
billingAnchorAt?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
388
|
+
*/
|
|
389
|
+
totalPayments?: number | null;
|
|
390
|
+
/**
|
|
391
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
392
|
+
*/
|
|
393
|
+
paymentsMade?: number;
|
|
394
|
+
completedAt?: string | null;
|
|
395
|
+
/**
|
|
396
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
397
|
+
*/
|
|
398
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
399
|
+
pendingIntervalCount?: number | null;
|
|
353
400
|
/**
|
|
354
401
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
355
402
|
*/
|
|
@@ -382,25 +429,9 @@ export declare class SubscriptionsService {
|
|
|
382
429
|
company?: string | null;
|
|
383
430
|
} | null;
|
|
384
431
|
/**
|
|
385
|
-
*
|
|
386
|
-
*/
|
|
387
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
388
|
-
intervalCount?: number | null;
|
|
389
|
-
billingAnchorAt?: string | null;
|
|
390
|
-
/**
|
|
391
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
392
|
-
*/
|
|
393
|
-
totalPayments?: number | null;
|
|
394
|
-
/**
|
|
395
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
396
|
-
*/
|
|
397
|
-
paymentsMade?: number;
|
|
398
|
-
completedAt?: string | null;
|
|
399
|
-
/**
|
|
400
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
432
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
401
433
|
*/
|
|
402
|
-
|
|
403
|
-
pendingIntervalCount?: number | null;
|
|
434
|
+
taxCategory?: string | null;
|
|
404
435
|
/**
|
|
405
436
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
406
437
|
*/
|
|
@@ -451,7 +482,30 @@ export declare class SubscriptionsService {
|
|
|
451
482
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
452
483
|
planReference?: string;
|
|
453
484
|
planName?: string | null;
|
|
485
|
+
/**
|
|
486
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
487
|
+
*/
|
|
454
488
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
489
|
+
/**
|
|
490
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
491
|
+
*/
|
|
492
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
493
|
+
intervalCount?: number | null;
|
|
494
|
+
billingAnchorAt?: string | null;
|
|
495
|
+
/**
|
|
496
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
497
|
+
*/
|
|
498
|
+
totalPayments?: number | null;
|
|
499
|
+
/**
|
|
500
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
501
|
+
*/
|
|
502
|
+
paymentsMade?: number;
|
|
503
|
+
completedAt?: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
506
|
+
*/
|
|
507
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
508
|
+
pendingIntervalCount?: number | null;
|
|
455
509
|
/**
|
|
456
510
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
457
511
|
*/
|
|
@@ -484,25 +538,9 @@ export declare class SubscriptionsService {
|
|
|
484
538
|
company?: string | null;
|
|
485
539
|
} | null;
|
|
486
540
|
/**
|
|
487
|
-
*
|
|
488
|
-
*/
|
|
489
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
490
|
-
intervalCount?: number | null;
|
|
491
|
-
billingAnchorAt?: string | null;
|
|
492
|
-
/**
|
|
493
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
494
|
-
*/
|
|
495
|
-
totalPayments?: number | null;
|
|
496
|
-
/**
|
|
497
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
498
|
-
*/
|
|
499
|
-
paymentsMade?: number;
|
|
500
|
-
completedAt?: string | null;
|
|
501
|
-
/**
|
|
502
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
541
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
503
542
|
*/
|
|
504
|
-
|
|
505
|
-
pendingIntervalCount?: number | null;
|
|
543
|
+
taxCategory?: string | null;
|
|
506
544
|
/**
|
|
507
545
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
508
546
|
*/
|
|
@@ -533,24 +571,47 @@ export declare class SubscriptionsService {
|
|
|
533
571
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
534
572
|
planReference?: string;
|
|
535
573
|
planName?: string | null;
|
|
574
|
+
/**
|
|
575
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
576
|
+
*/
|
|
536
577
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
537
578
|
/**
|
|
538
|
-
*
|
|
579
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
539
580
|
*/
|
|
540
|
-
|
|
581
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
582
|
+
intervalCount?: number | null;
|
|
583
|
+
billingAnchorAt?: string | null;
|
|
541
584
|
/**
|
|
542
|
-
*
|
|
585
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
543
586
|
*/
|
|
544
|
-
|
|
545
|
-
currency?: string;
|
|
546
|
-
currentPeriodStart?: string;
|
|
547
|
-
currentPeriodEnd?: string;
|
|
548
|
-
cancelAtPeriodEnd?: boolean;
|
|
549
|
-
failureCount?: number;
|
|
587
|
+
totalPayments?: number | null;
|
|
550
588
|
/**
|
|
551
|
-
*
|
|
589
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
552
590
|
*/
|
|
553
|
-
|
|
591
|
+
paymentsMade?: number;
|
|
592
|
+
completedAt?: string | null;
|
|
593
|
+
/**
|
|
594
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
595
|
+
*/
|
|
596
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
597
|
+
pendingIntervalCount?: number | null;
|
|
598
|
+
/**
|
|
599
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
600
|
+
*/
|
|
601
|
+
amount?: number;
|
|
602
|
+
/**
|
|
603
|
+
* #688 — number of seats. Per-seat price is amount; the period charge is amount × quantity.
|
|
604
|
+
*/
|
|
605
|
+
quantity?: number;
|
|
606
|
+
currency?: string;
|
|
607
|
+
currentPeriodStart?: string;
|
|
608
|
+
currentPeriodEnd?: string;
|
|
609
|
+
cancelAtPeriodEnd?: boolean;
|
|
610
|
+
failureCount?: number;
|
|
611
|
+
/**
|
|
612
|
+
* Arbitrary key-value metadata
|
|
613
|
+
*/
|
|
614
|
+
metadata?: Record<string, any>;
|
|
554
615
|
taxAddressSnapshot?: any | null;
|
|
555
616
|
taxAddressSource?: string | null;
|
|
556
617
|
createdAt?: string;
|
|
@@ -566,25 +627,9 @@ export declare class SubscriptionsService {
|
|
|
566
627
|
company?: string | null;
|
|
567
628
|
} | null;
|
|
568
629
|
/**
|
|
569
|
-
*
|
|
570
|
-
*/
|
|
571
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
572
|
-
intervalCount?: number | null;
|
|
573
|
-
billingAnchorAt?: string | null;
|
|
574
|
-
/**
|
|
575
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
576
|
-
*/
|
|
577
|
-
totalPayments?: number | null;
|
|
578
|
-
/**
|
|
579
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
580
|
-
*/
|
|
581
|
-
paymentsMade?: number;
|
|
582
|
-
completedAt?: string | null;
|
|
583
|
-
/**
|
|
584
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
630
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
585
631
|
*/
|
|
586
|
-
|
|
587
|
-
pendingIntervalCount?: number | null;
|
|
632
|
+
taxCategory?: string | null;
|
|
588
633
|
/**
|
|
589
634
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
590
635
|
*/
|
|
@@ -618,7 +663,30 @@ export declare class SubscriptionsService {
|
|
|
618
663
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
619
664
|
planReference?: string;
|
|
620
665
|
planName?: string | null;
|
|
666
|
+
/**
|
|
667
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
668
|
+
*/
|
|
621
669
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
670
|
+
/**
|
|
671
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
672
|
+
*/
|
|
673
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
674
|
+
intervalCount?: number | null;
|
|
675
|
+
billingAnchorAt?: string | null;
|
|
676
|
+
/**
|
|
677
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
678
|
+
*/
|
|
679
|
+
totalPayments?: number | null;
|
|
680
|
+
/**
|
|
681
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
682
|
+
*/
|
|
683
|
+
paymentsMade?: number;
|
|
684
|
+
completedAt?: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
687
|
+
*/
|
|
688
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
689
|
+
pendingIntervalCount?: number | null;
|
|
622
690
|
/**
|
|
623
691
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
624
692
|
*/
|
|
@@ -651,25 +719,9 @@ export declare class SubscriptionsService {
|
|
|
651
719
|
company?: string | null;
|
|
652
720
|
} | null;
|
|
653
721
|
/**
|
|
654
|
-
*
|
|
655
|
-
*/
|
|
656
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
657
|
-
intervalCount?: number | null;
|
|
658
|
-
billingAnchorAt?: string | null;
|
|
659
|
-
/**
|
|
660
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
661
|
-
*/
|
|
662
|
-
totalPayments?: number | null;
|
|
663
|
-
/**
|
|
664
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
722
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
665
723
|
*/
|
|
666
|
-
|
|
667
|
-
completedAt?: string | null;
|
|
668
|
-
/**
|
|
669
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
670
|
-
*/
|
|
671
|
-
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
672
|
-
pendingIntervalCount?: number | null;
|
|
724
|
+
taxCategory?: string | null;
|
|
673
725
|
/**
|
|
674
726
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
675
727
|
*/
|
|
@@ -700,7 +752,30 @@ export declare class SubscriptionsService {
|
|
|
700
752
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
701
753
|
planReference?: string;
|
|
702
754
|
planName?: string | null;
|
|
755
|
+
/**
|
|
756
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
757
|
+
*/
|
|
703
758
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
759
|
+
/**
|
|
760
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
761
|
+
*/
|
|
762
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
763
|
+
intervalCount?: number | null;
|
|
764
|
+
billingAnchorAt?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
767
|
+
*/
|
|
768
|
+
totalPayments?: number | null;
|
|
769
|
+
/**
|
|
770
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
771
|
+
*/
|
|
772
|
+
paymentsMade?: number;
|
|
773
|
+
completedAt?: string | null;
|
|
774
|
+
/**
|
|
775
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
776
|
+
*/
|
|
777
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
778
|
+
pendingIntervalCount?: number | null;
|
|
704
779
|
/**
|
|
705
780
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
706
781
|
*/
|
|
@@ -733,25 +808,9 @@ export declare class SubscriptionsService {
|
|
|
733
808
|
company?: string | null;
|
|
734
809
|
} | null;
|
|
735
810
|
/**
|
|
736
|
-
*
|
|
737
|
-
*/
|
|
738
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
739
|
-
intervalCount?: number | null;
|
|
740
|
-
billingAnchorAt?: string | null;
|
|
741
|
-
/**
|
|
742
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
743
|
-
*/
|
|
744
|
-
totalPayments?: number | null;
|
|
745
|
-
/**
|
|
746
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
811
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
747
812
|
*/
|
|
748
|
-
|
|
749
|
-
completedAt?: string | null;
|
|
750
|
-
/**
|
|
751
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
752
|
-
*/
|
|
753
|
-
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
754
|
-
pendingIntervalCount?: number | null;
|
|
813
|
+
taxCategory?: string | null;
|
|
755
814
|
/**
|
|
756
815
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
757
816
|
*/
|
|
@@ -786,17 +845,9 @@ export declare class SubscriptionsService {
|
|
|
786
845
|
*/
|
|
787
846
|
planName?: string;
|
|
788
847
|
/**
|
|
789
|
-
*
|
|
848
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
790
849
|
*/
|
|
791
850
|
interval?: string;
|
|
792
|
-
/**
|
|
793
|
-
* Amount in the smallest currency unit (e.g. cents)
|
|
794
|
-
*/
|
|
795
|
-
amount: number;
|
|
796
|
-
/**
|
|
797
|
-
* When the plan change takes effect
|
|
798
|
-
*/
|
|
799
|
-
effective: 'now' | 'period_end';
|
|
800
851
|
/**
|
|
801
852
|
* Cadence unit. Send with intervalCount instead of, or together with, interval.
|
|
802
853
|
*/
|
|
@@ -805,6 +856,14 @@ export declare class SubscriptionsService {
|
|
|
805
856
|
* Cadence count: every N units. At most one year (8760 hours, 365 days, 52 weeks, 12 months).
|
|
806
857
|
*/
|
|
807
858
|
intervalCount?: number;
|
|
859
|
+
/**
|
|
860
|
+
* Amount in the smallest currency unit (e.g. cents)
|
|
861
|
+
*/
|
|
862
|
+
amount: number;
|
|
863
|
+
/**
|
|
864
|
+
* When the plan change takes effect
|
|
865
|
+
*/
|
|
866
|
+
effective: 'now' | 'period_end';
|
|
808
867
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
809
868
|
data?: {
|
|
810
869
|
id?: string;
|
|
@@ -812,7 +871,30 @@ export declare class SubscriptionsService {
|
|
|
812
871
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
813
872
|
planReference?: string;
|
|
814
873
|
planName?: string | null;
|
|
874
|
+
/**
|
|
875
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
876
|
+
*/
|
|
815
877
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
878
|
+
/**
|
|
879
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
880
|
+
*/
|
|
881
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
882
|
+
intervalCount?: number | null;
|
|
883
|
+
billingAnchorAt?: string | null;
|
|
884
|
+
/**
|
|
885
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
886
|
+
*/
|
|
887
|
+
totalPayments?: number | null;
|
|
888
|
+
/**
|
|
889
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
890
|
+
*/
|
|
891
|
+
paymentsMade?: number;
|
|
892
|
+
completedAt?: string | null;
|
|
893
|
+
/**
|
|
894
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
895
|
+
*/
|
|
896
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
897
|
+
pendingIntervalCount?: number | null;
|
|
816
898
|
/**
|
|
817
899
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
818
900
|
*/
|
|
@@ -844,35 +926,19 @@ export declare class SubscriptionsService {
|
|
|
844
926
|
lastName?: string | null;
|
|
845
927
|
company?: string | null;
|
|
846
928
|
} | null;
|
|
847
|
-
proration?: {
|
|
848
|
-
creditCents?: number;
|
|
849
|
-
chargedCents?: number;
|
|
850
|
-
fullAmount?: number;
|
|
851
|
-
};
|
|
852
|
-
/**
|
|
853
|
-
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
854
|
-
*/
|
|
855
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
856
|
-
intervalCount?: number | null;
|
|
857
|
-
billingAnchorAt?: string | null;
|
|
858
|
-
/**
|
|
859
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
860
|
-
*/
|
|
861
|
-
totalPayments?: number | null;
|
|
862
|
-
/**
|
|
863
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
864
|
-
*/
|
|
865
|
-
paymentsMade?: number;
|
|
866
|
-
completedAt?: string | null;
|
|
867
929
|
/**
|
|
868
|
-
*
|
|
930
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
869
931
|
*/
|
|
870
|
-
|
|
871
|
-
pendingIntervalCount?: number | null;
|
|
932
|
+
taxCategory?: string | null;
|
|
872
933
|
/**
|
|
873
934
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
874
935
|
*/
|
|
875
936
|
renewalIssue?: any | null;
|
|
937
|
+
proration?: {
|
|
938
|
+
creditCents?: number;
|
|
939
|
+
chargedCents?: number;
|
|
940
|
+
fullAmount?: number;
|
|
941
|
+
};
|
|
876
942
|
};
|
|
877
943
|
meta?: {
|
|
878
944
|
/**
|
|
@@ -909,7 +975,30 @@ export declare class SubscriptionsService {
|
|
|
909
975
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
910
976
|
planReference?: string;
|
|
911
977
|
planName?: string | null;
|
|
978
|
+
/**
|
|
979
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
980
|
+
*/
|
|
912
981
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
982
|
+
/**
|
|
983
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
984
|
+
*/
|
|
985
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
986
|
+
intervalCount?: number | null;
|
|
987
|
+
billingAnchorAt?: string | null;
|
|
988
|
+
/**
|
|
989
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
990
|
+
*/
|
|
991
|
+
totalPayments?: number | null;
|
|
992
|
+
/**
|
|
993
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
994
|
+
*/
|
|
995
|
+
paymentsMade?: number;
|
|
996
|
+
completedAt?: string | null;
|
|
997
|
+
/**
|
|
998
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
999
|
+
*/
|
|
1000
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1001
|
+
pendingIntervalCount?: number | null;
|
|
913
1002
|
/**
|
|
914
1003
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
915
1004
|
*/
|
|
@@ -941,35 +1030,19 @@ export declare class SubscriptionsService {
|
|
|
941
1030
|
lastName?: string | null;
|
|
942
1031
|
company?: string | null;
|
|
943
1032
|
} | null;
|
|
944
|
-
proration?: {
|
|
945
|
-
creditCents?: number;
|
|
946
|
-
chargedCents?: number;
|
|
947
|
-
fullAmount?: number;
|
|
948
|
-
};
|
|
949
|
-
/**
|
|
950
|
-
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
951
|
-
*/
|
|
952
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
953
|
-
intervalCount?: number | null;
|
|
954
|
-
billingAnchorAt?: string | null;
|
|
955
|
-
/**
|
|
956
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
957
|
-
*/
|
|
958
|
-
totalPayments?: number | null;
|
|
959
|
-
/**
|
|
960
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
961
|
-
*/
|
|
962
|
-
paymentsMade?: number;
|
|
963
|
-
completedAt?: string | null;
|
|
964
1033
|
/**
|
|
965
|
-
*
|
|
1034
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
966
1035
|
*/
|
|
967
|
-
|
|
968
|
-
pendingIntervalCount?: number | null;
|
|
1036
|
+
taxCategory?: string | null;
|
|
969
1037
|
/**
|
|
970
1038
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
971
1039
|
*/
|
|
972
1040
|
renewalIssue?: any | null;
|
|
1041
|
+
proration?: {
|
|
1042
|
+
creditCents?: number;
|
|
1043
|
+
chargedCents?: number;
|
|
1044
|
+
fullAmount?: number;
|
|
1045
|
+
};
|
|
973
1046
|
};
|
|
974
1047
|
meta?: {
|
|
975
1048
|
/**
|
|
@@ -996,7 +1069,30 @@ export declare class SubscriptionsService {
|
|
|
996
1069
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
997
1070
|
planReference?: string;
|
|
998
1071
|
planName?: string | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
1074
|
+
*/
|
|
999
1075
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
1076
|
+
/**
|
|
1077
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
1078
|
+
*/
|
|
1079
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1080
|
+
intervalCount?: number | null;
|
|
1081
|
+
billingAnchorAt?: string | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
1084
|
+
*/
|
|
1085
|
+
totalPayments?: number | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
1088
|
+
*/
|
|
1089
|
+
paymentsMade?: number;
|
|
1090
|
+
completedAt?: string | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
1093
|
+
*/
|
|
1094
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1095
|
+
pendingIntervalCount?: number | null;
|
|
1000
1096
|
/**
|
|
1001
1097
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1002
1098
|
*/
|
|
@@ -1029,25 +1125,9 @@ export declare class SubscriptionsService {
|
|
|
1029
1125
|
company?: string | null;
|
|
1030
1126
|
} | null;
|
|
1031
1127
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
*/
|
|
1034
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1035
|
-
intervalCount?: number | null;
|
|
1036
|
-
billingAnchorAt?: string | null;
|
|
1037
|
-
/**
|
|
1038
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
1039
|
-
*/
|
|
1040
|
-
totalPayments?: number | null;
|
|
1041
|
-
/**
|
|
1042
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
1043
|
-
*/
|
|
1044
|
-
paymentsMade?: number;
|
|
1045
|
-
completedAt?: string | null;
|
|
1046
|
-
/**
|
|
1047
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
1128
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
1048
1129
|
*/
|
|
1049
|
-
|
|
1050
|
-
pendingIntervalCount?: number | null;
|
|
1130
|
+
taxCategory?: string | null;
|
|
1051
1131
|
/**
|
|
1052
1132
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
1053
1133
|
*/
|
|
@@ -1088,7 +1168,30 @@ export declare class SubscriptionsService {
|
|
|
1088
1168
|
status?: 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing' | 'unpaid' | 'completed';
|
|
1089
1169
|
planReference?: string;
|
|
1090
1170
|
planName?: string | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* A named interval, or "custom" when intervalUnit/intervalCount describe any other cadence
|
|
1173
|
+
*/
|
|
1091
1174
|
interval?: 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'custom';
|
|
1175
|
+
/**
|
|
1176
|
+
* Cadence unit: every intervalCount of these. A named interval carries its shorthand (monthly → month).
|
|
1177
|
+
*/
|
|
1178
|
+
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1179
|
+
intervalCount?: number | null;
|
|
1180
|
+
billingAnchorAt?: string | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
1183
|
+
*/
|
|
1184
|
+
totalPayments?: number | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Installment plans only: payments counted so far (charges and waived periods).
|
|
1187
|
+
*/
|
|
1188
|
+
paymentsMade?: number;
|
|
1189
|
+
completedAt?: string | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
1192
|
+
*/
|
|
1193
|
+
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1194
|
+
pendingIntervalCount?: number | null;
|
|
1092
1195
|
/**
|
|
1093
1196
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1094
1197
|
*/
|
|
@@ -1121,25 +1224,9 @@ export declare class SubscriptionsService {
|
|
|
1121
1224
|
company?: string | null;
|
|
1122
1225
|
} | null;
|
|
1123
1226
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
*/
|
|
1126
|
-
intervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1127
|
-
intervalCount?: number | null;
|
|
1128
|
-
billingAnchorAt?: string | null;
|
|
1129
|
-
/**
|
|
1130
|
-
* Installment plans only: the fixed number of payments. null for an ongoing subscription.
|
|
1227
|
+
* The tax category frozen from the checkout line that created this subscription (its `metadata.taxCategory`). Every renewal is quoted and filed with it, and it survives plan changes. Null when the line had none: renewals then use the default category.
|
|
1131
1228
|
*/
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* Installment plans only: payments counted so far (charges and waived periods).
|
|
1135
|
-
*/
|
|
1136
|
-
paymentsMade?: number;
|
|
1137
|
-
completedAt?: string | null;
|
|
1138
|
-
/**
|
|
1139
|
-
* Cadence unit of the scheduled plan change; null when none is scheduled.
|
|
1140
|
-
*/
|
|
1141
|
-
pendingIntervalUnit?: 'hour' | 'day' | 'week' | 'month' | null;
|
|
1142
|
-
pendingIntervalCount?: number | null;
|
|
1229
|
+
taxCategory?: string | null;
|
|
1143
1230
|
/**
|
|
1144
1231
|
* Read-only. Set by the renewal job when renewals are failing (system_error) or when a card was charged but the renewal could not be recorded (orphan_charge — renewals are paused until resolved).
|
|
1145
1232
|
*/
|