Skip to content

Commit da063a7

Browse files
feat(api): api update
1 parent 40d3a87 commit da063a7

File tree

2 files changed

+80
-2
lines changed

2 files changed

+80
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-7936e3f73bbe1d59d27fd7a8a226985927b38fdec1c936c77577381699fb6140.yml
3-
openapi_spec_hash: 1d3f9ed5fbdb0e40d56d6acd9d1736e2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-03af7f658aed245cf7e230055de59fe92a78880f3719bf254ed9352bf89bad5e.yml
3+
openapi_spec_hash: c4703d217c25e8c02c248caed9e2d3be
44
config_hash: 895e36fb2d717958770fd4cf883f4b74

src/resources/subscription-changes.ts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ export interface MutatedSubscription {
236236
export interface SubscriptionChangeRetrieveResponse {
237237
id: string;
238238

239+
/**
240+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
241+
*/
242+
change_type: string;
243+
239244
/**
240245
* Subscription change will be cancelled at this time and can no longer be applied.
241246
*/
@@ -250,10 +255,31 @@ export interface SubscriptionChangeRetrieveResponse {
250255
*/
251256
applied_at?: string | null;
252257

258+
/**
259+
* Billing cycle alignment for plan changes.
260+
*/
261+
billing_cycle_alignment?: string | null;
262+
253263
/**
254264
* When this change was cancelled.
255265
*/
256266
cancelled_at?: string | null;
267+
268+
/**
269+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
270+
* 'requested_date').
271+
*/
272+
change_option?: string | null;
273+
274+
/**
275+
* When this change will take effect.
276+
*/
277+
effective_date?: string | null;
278+
279+
/**
280+
* The target plan ID for plan changes.
281+
*/
282+
plan_id?: string | null;
257283
}
258284

259285
/**
@@ -265,6 +291,11 @@ export interface SubscriptionChangeRetrieveResponse {
265291
export interface SubscriptionChangeApplyResponse {
266292
id: string;
267293

294+
/**
295+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
296+
*/
297+
change_type: string;
298+
268299
/**
269300
* Subscription change will be cancelled at this time and can no longer be applied.
270301
*/
@@ -279,10 +310,31 @@ export interface SubscriptionChangeApplyResponse {
279310
*/
280311
applied_at?: string | null;
281312

313+
/**
314+
* Billing cycle alignment for plan changes.
315+
*/
316+
billing_cycle_alignment?: string | null;
317+
282318
/**
283319
* When this change was cancelled.
284320
*/
285321
cancelled_at?: string | null;
322+
323+
/**
324+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
325+
* 'requested_date').
326+
*/
327+
change_option?: string | null;
328+
329+
/**
330+
* When this change will take effect.
331+
*/
332+
effective_date?: string | null;
333+
334+
/**
335+
* The target plan ID for plan changes.
336+
*/
337+
plan_id?: string | null;
286338
}
287339

288340
/**
@@ -294,6 +346,11 @@ export interface SubscriptionChangeApplyResponse {
294346
export interface SubscriptionChangeCancelResponse {
295347
id: string;
296348

349+
/**
350+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
351+
*/
352+
change_type: string;
353+
297354
/**
298355
* Subscription change will be cancelled at this time and can no longer be applied.
299356
*/
@@ -308,10 +365,31 @@ export interface SubscriptionChangeCancelResponse {
308365
*/
309366
applied_at?: string | null;
310367

368+
/**
369+
* Billing cycle alignment for plan changes.
370+
*/
371+
billing_cycle_alignment?: string | null;
372+
311373
/**
312374
* When this change was cancelled.
313375
*/
314376
cancelled_at?: string | null;
377+
378+
/**
379+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
380+
* 'requested_date').
381+
*/
382+
change_option?: string | null;
383+
384+
/**
385+
* When this change will take effect.
386+
*/
387+
effective_date?: string | null;
388+
389+
/**
390+
* The target plan ID for plan changes.
391+
*/
392+
plan_id?: string | null;
315393
}
316394

317395
export interface SubscriptionChangeApplyParams {

0 commit comments

Comments
 (0)