Skip to content

Commit 270f79a

Browse files
feat(api): api update
1 parent 950127b commit 270f79a

8 files changed

+23
-9
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-d63c8075b48441663736b457f8ad859c58cc3e31dfbffb68db44c3f00562012c.yml
3-
openapi_spec_hash: c47dbff685a0a449bfc1ad729c13a72e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2c9291de1fd876908ebe56144e90762ab6e390e3f25102da815ab3fca6335d38.yml
3+
openapi_spec_hash: eabe2d8e58ceed1d61d41fe7a44020ca
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

src/orb/types/new_subscription_tiered_package_price_param.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class TieredPackageConfig(TypedDict, total=False):
3333
tiers: Required[Iterable[TieredPackageConfigTier]]
3434
"""Apply tiered pricing after rounding up the quantity to the package size.
3535
36-
Tiers are defined using exclusive lower bounds.
36+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
37+
based on the total quantity rather than the number of packages, so they must be
38+
multiples of the package size.
3739
"""
3840

3941

src/orb/types/price_create_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@ class NewFloatingTieredPackagePriceTieredPackageConfig(TypedDict, total=False):
672672
tiers: Required[Iterable[NewFloatingTieredPackagePriceTieredPackageConfigTier]]
673673
"""Apply tiered pricing after rounding up the quantity to the package size.
674674
675-
Tiers are defined using exclusive lower bounds.
675+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
676+
based on the total quantity rather than the number of packages, so they must be
677+
multiples of the package size.
676678
"""
677679

678680

src/orb/types/shared/new_floating_tiered_package_price.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class TieredPackageConfig(BaseModel):
3030
tiers: List[TieredPackageConfigTier]
3131
"""Apply tiered pricing after rounding up the quantity to the package size.
3232
33-
Tiers are defined using exclusive lower bounds.
33+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
34+
based on the total quantity rather than the number of packages, so they must be
35+
multiples of the package size.
3436
"""
3537

3638

src/orb/types/shared/new_plan_tiered_package_price.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class TieredPackageConfig(BaseModel):
3030
tiers: List[TieredPackageConfigTier]
3131
"""Apply tiered pricing after rounding up the quantity to the package size.
3232
33-
Tiers are defined using exclusive lower bounds.
33+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
34+
based on the total quantity rather than the number of packages, so they must be
35+
multiples of the package size.
3436
"""
3537

3638

src/orb/types/shared/price.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,9 @@ class TieredPackagePriceTieredPackageConfig(BaseModel):
598598
tiers: List[TieredPackagePriceTieredPackageConfigTier]
599599
"""Apply tiered pricing after rounding up the quantity to the package size.
600600
601-
Tiers are defined using exclusive lower bounds.
601+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
602+
based on the total quantity rather than the number of packages, so they must be
603+
multiples of the package size.
602604
"""
603605

604606

src/orb/types/shared_params/new_floating_tiered_package_price.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class TieredPackageConfig(TypedDict, total=False):
2828
tiers: Required[Iterable[TieredPackageConfigTier]]
2929
"""Apply tiered pricing after rounding up the quantity to the package size.
3030
31-
Tiers are defined using exclusive lower bounds.
31+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
32+
based on the total quantity rather than the number of packages, so they must be
33+
multiples of the package size.
3234
"""
3335

3436

src/orb/types/shared_params/new_plan_tiered_package_price.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class TieredPackageConfig(TypedDict, total=False):
2828
tiers: Required[Iterable[TieredPackageConfigTier]]
2929
"""Apply tiered pricing after rounding up the quantity to the package size.
3030
31-
Tiers are defined using exclusive lower bounds.
31+
Tiers are defined using exclusive lower bounds. The tier bounds are defined
32+
based on the total quantity rather than the number of packages, so they must be
33+
multiples of the package size.
3234
"""
3335

3436

0 commit comments

Comments
 (0)