Skip to content

Commit fdbf7cd

Browse files
feat(api): api update
1 parent 28fd390 commit fdbf7cd

10 files changed

+434
-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/orb/types/beta/external_plan_id_create_plan_version_params.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"AddAdjustmentAdjustmentNewMaximum",
1717
"AddPrice",
1818
"AddPriceAllocationPrice",
19+
"AddPriceAllocationPriceCustomExpiration",
1920
"AddPricePrice",
2021
"AddPricePriceNewPlanUnitPrice",
2122
"AddPricePriceNewPlanUnitPriceUnitConfig",
@@ -155,6 +156,7 @@
155156
"ReplaceAdjustmentAdjustmentNewMaximum",
156157
"ReplacePrice",
157158
"ReplacePriceAllocationPrice",
159+
"ReplacePriceAllocationPriceCustomExpiration",
158160
"ReplacePricePrice",
159161
"ReplacePricePriceNewPlanUnitPrice",
160162
"ReplacePricePriceNewPlanUnitPriceUnitConfig",
@@ -407,6 +409,12 @@ class AddAdjustment(TypedDict, total=False):
407409
"""The phase to add this adjustment to."""
408410

409411

412+
class AddPriceAllocationPriceCustomExpiration(TypedDict, total=False):
413+
duration: Required[int]
414+
415+
duration_unit: Required[Literal["day", "month"]]
416+
417+
410418
class AddPriceAllocationPrice(TypedDict, total=False):
411419
amount: Required[str]
412420
"""An amount of the currency to allocate to the customer at the specified cadence."""
@@ -420,10 +428,13 @@ class AddPriceAllocationPrice(TypedDict, total=False):
420428
this price.
421429
"""
422430

423-
expires_at_end_of_cadence: Required[bool]
431+
custom_expiration: Optional[AddPriceAllocationPriceCustomExpiration]
432+
"""The custom expiration for the allocation."""
433+
434+
expires_at_end_of_cadence: Optional[bool]
424435
"""
425436
Whether the allocated amount should expire at the end of the cadence or roll
426-
over to the next period.
437+
over to the next period. Set to null if using custom_expiration.
427438
"""
428439

429440

@@ -3568,6 +3579,12 @@ class ReplaceAdjustment(TypedDict, total=False):
35683579
"""The phase to replace this adjustment from."""
35693580

35703581

3582+
class ReplacePriceAllocationPriceCustomExpiration(TypedDict, total=False):
3583+
duration: Required[int]
3584+
3585+
duration_unit: Required[Literal["day", "month"]]
3586+
3587+
35713588
class ReplacePriceAllocationPrice(TypedDict, total=False):
35723589
amount: Required[str]
35733590
"""An amount of the currency to allocate to the customer at the specified cadence."""
@@ -3581,10 +3598,13 @@ class ReplacePriceAllocationPrice(TypedDict, total=False):
35813598
this price.
35823599
"""
35833600

3584-
expires_at_end_of_cadence: Required[bool]
3601+
custom_expiration: Optional[ReplacePriceAllocationPriceCustomExpiration]
3602+
"""The custom expiration for the allocation."""
3603+
3604+
expires_at_end_of_cadence: Optional[bool]
35853605
"""
35863606
Whether the allocated amount should expire at the end of the cadence or roll
3587-
over to the next period.
3607+
over to the next period. Set to null if using custom_expiration.
35883608
"""
35893609

35903610

src/orb/types/beta_create_plan_version_params.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"AddAdjustmentAdjustmentNewMaximum",
1717
"AddPrice",
1818
"AddPriceAllocationPrice",
19+
"AddPriceAllocationPriceCustomExpiration",
1920
"AddPricePrice",
2021
"AddPricePriceNewPlanUnitPrice",
2122
"AddPricePriceNewPlanUnitPriceUnitConfig",
@@ -155,6 +156,7 @@
155156
"ReplaceAdjustmentAdjustmentNewMaximum",
156157
"ReplacePrice",
157158
"ReplacePriceAllocationPrice",
159+
"ReplacePriceAllocationPriceCustomExpiration",
158160
"ReplacePricePrice",
159161
"ReplacePricePriceNewPlanUnitPrice",
160162
"ReplacePricePriceNewPlanUnitPriceUnitConfig",
@@ -407,6 +409,12 @@ class AddAdjustment(TypedDict, total=False):
407409
"""The phase to add this adjustment to."""
408410

409411

412+
class AddPriceAllocationPriceCustomExpiration(TypedDict, total=False):
413+
duration: Required[int]
414+
415+
duration_unit: Required[Literal["day", "month"]]
416+
417+
410418
class AddPriceAllocationPrice(TypedDict, total=False):
411419
amount: Required[str]
412420
"""An amount of the currency to allocate to the customer at the specified cadence."""
@@ -420,10 +428,13 @@ class AddPriceAllocationPrice(TypedDict, total=False):
420428
this price.
421429
"""
422430

423-
expires_at_end_of_cadence: Required[bool]
431+
custom_expiration: Optional[AddPriceAllocationPriceCustomExpiration]
432+
"""The custom expiration for the allocation."""
433+
434+
expires_at_end_of_cadence: Optional[bool]
424435
"""
425436
Whether the allocated amount should expire at the end of the cadence or roll
426-
over to the next period.
437+
over to the next period. Set to null if using custom_expiration.
427438
"""
428439

429440

@@ -3568,6 +3579,12 @@ class ReplaceAdjustment(TypedDict, total=False):
35683579
"""The phase to replace this adjustment from."""
35693580

35703581

3582+
class ReplacePriceAllocationPriceCustomExpiration(TypedDict, total=False):
3583+
duration: Required[int]
3584+
3585+
duration_unit: Required[Literal["day", "month"]]
3586+
3587+
35713588
class ReplacePriceAllocationPrice(TypedDict, total=False):
35723589
amount: Required[str]
35733590
"""An amount of the currency to allocate to the customer at the specified cadence."""
@@ -3581,10 +3598,13 @@ class ReplacePriceAllocationPrice(TypedDict, total=False):
35813598
this price.
35823599
"""
35833600

3584-
expires_at_end_of_cadence: Required[bool]
3601+
custom_expiration: Optional[ReplacePriceAllocationPriceCustomExpiration]
3602+
"""The custom expiration for the allocation."""
3603+
3604+
expires_at_end_of_cadence: Optional[bool]
35853605
"""
35863606
Whether the allocated amount should expire at the end of the cadence or roll
3587-
over to the next period.
3607+
over to the next period. Set to null if using custom_expiration.
35883608
"""
35893609

35903610

0 commit comments

Comments
 (0)