Skip to content

Commit e7c0e9b

Browse files
feat(api): api update
1 parent 1148ae8 commit e7c0e9b

File tree

8 files changed

+450
-20
lines changed

8 files changed

+450
-20
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: 114
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c697450a215fdbd1a854d26381ce137b222726c3e6669a93afb1c0c5669906ca.yml
3-
openapi_spec_hash: b8b5388292baa73b5f2c686d4904ae45
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6d2a5b5d2cfb485e1a548aa15e1e36844e1f14f42553033822e1c570c8aa0825.yml
3+
openapi_spec_hash: 0266a5aaced5e768bcf6a70924d69799
44
config_hash: e63f2d098e5d12f63ae4cd8270aa5c3c

src/resources/beta/beta.ts

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,27 @@ export namespace BetaCreatePlanVersionParams {
620620
*/
621621
currency: string;
622622

623+
/**
624+
* The custom expiration for the allocation.
625+
*/
626+
custom_expiration?: AllocationPrice.CustomExpiration | null;
627+
623628
/**
624629
* Whether the allocated amount should expire at the end of the cadence or roll
625-
* over to the next period.
630+
* over to the next period. Set to null if using custom_expiration.
626631
*/
627-
expires_at_end_of_cadence: boolean;
632+
expires_at_end_of_cadence?: boolean | null;
633+
}
634+
635+
export namespace AllocationPrice {
636+
/**
637+
* The custom expiration for the allocation.
638+
*/
639+
export interface CustomExpiration {
640+
duration: number;
641+
642+
duration_unit: 'day' | 'month';
643+
}
628644
}
629645

630646
export interface NewPlanUnitPrice {
@@ -4939,11 +4955,27 @@ export namespace BetaCreatePlanVersionParams {
49394955
*/
49404956
currency: string;
49414957

4958+
/**
4959+
* The custom expiration for the allocation.
4960+
*/
4961+
custom_expiration?: AllocationPrice.CustomExpiration | null;
4962+
49424963
/**
49434964
* Whether the allocated amount should expire at the end of the cadence or roll
4944-
* over to the next period.
4965+
* over to the next period. Set to null if using custom_expiration.
49454966
*/
4946-
expires_at_end_of_cadence: boolean;
4967+
expires_at_end_of_cadence?: boolean | null;
4968+
}
4969+
4970+
export namespace AllocationPrice {
4971+
/**
4972+
* The custom expiration for the allocation.
4973+
*/
4974+
export interface CustomExpiration {
4975+
duration: number;
4976+
4977+
duration_unit: 'day' | 'month';
4978+
}
49474979
}
49484980

49494981
export interface NewPlanUnitPrice {

src/resources/beta/external-plan-id.ts

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,27 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
272272
*/
273273
currency: string;
274274

275+
/**
276+
* The custom expiration for the allocation.
277+
*/
278+
custom_expiration?: AllocationPrice.CustomExpiration | null;
279+
275280
/**
276281
* Whether the allocated amount should expire at the end of the cadence or roll
277-
* over to the next period.
282+
* over to the next period. Set to null if using custom_expiration.
278283
*/
279-
expires_at_end_of_cadence: boolean;
284+
expires_at_end_of_cadence?: boolean | null;
285+
}
286+
287+
export namespace AllocationPrice {
288+
/**
289+
* The custom expiration for the allocation.
290+
*/
291+
export interface CustomExpiration {
292+
duration: number;
293+
294+
duration_unit: 'day' | 'month';
295+
}
280296
}
281297

282298
export interface NewPlanUnitPrice {
@@ -4591,11 +4607,27 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
45914607
*/
45924608
currency: string;
45934609

4610+
/**
4611+
* The custom expiration for the allocation.
4612+
*/
4613+
custom_expiration?: AllocationPrice.CustomExpiration | null;
4614+
45944615
/**
45954616
* Whether the allocated amount should expire at the end of the cadence or roll
4596-
* over to the next period.
4617+
* over to the next period. Set to null if using custom_expiration.
45974618
*/
4598-
expires_at_end_of_cadence: boolean;
4619+
expires_at_end_of_cadence?: boolean | null;
4620+
}
4621+
4622+
export namespace AllocationPrice {
4623+
/**
4624+
* The custom expiration for the allocation.
4625+
*/
4626+
export interface CustomExpiration {
4627+
duration: number;
4628+
4629+
duration_unit: 'day' | 'month';
4630+
}
45994631
}
46004632

46014633
export interface NewPlanUnitPrice {

0 commit comments

Comments
 (0)