Skip to content

Commit 8e3ac4b

Browse files
feat(api): api update
1 parent 246283d commit 8e3ac4b

11 files changed

+47
-17
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

lib/orb/models/new_floating_tiered_package_price.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel
191191

192192
# @!attribute tiers
193193
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
194-
# are defined using exclusive lower bounds.
194+
# are defined using exclusive lower bounds. The tier bounds are defined based on
195+
# the total quantity rather than the number of packages, so they must be multiples
196+
# of the package size.
195197
#
196198
# @return [Array<Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier>]
197199
required :tiers,

lib/orb/models/new_plan_tiered_package_price.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel
201201

202202
# @!attribute tiers
203203
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
204-
# are defined using exclusive lower bounds.
204+
# are defined using exclusive lower bounds. The tier bounds are defined based on
205+
# the total quantity rather than the number of packages, so they must be multiples
206+
# of the package size.
205207
#
206208
# @return [Array<Orb::Models::NewPlanTieredPackagePrice::TieredPackageConfig::Tier>]
207209
required :tiers,

lib/orb/models/new_subscription_tiered_package_price.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel
201201

202202
# @!attribute tiers
203203
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
204-
# are defined using exclusive lower bounds.
204+
# are defined using exclusive lower bounds. The tier bounds are defined based on
205+
# the total quantity rather than the number of packages, so they must be multiples
206+
# of the package size.
205207
#
206208
# @return [Array<Orb::Models::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier>]
207209
required :tiers,

lib/orb/models/price.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel
17931793

17941794
# @!attribute tiers
17951795
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
1796-
# are defined using exclusive lower bounds.
1796+
# are defined using exclusive lower bounds. The tier bounds are defined based on
1797+
# the total quantity rather than the number of packages, so they must be multiples
1798+
# of the package size.
17971799
#
17981800
# @return [Array<Orb::Models::Price::TieredPackage::TieredPackageConfig::Tier>]
17991801
required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredPackage::TieredPackageConfig::Tier] }

lib/orb/models/price_create_params.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel
451451

452452
# @!attribute tiers
453453
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
454-
# are defined using exclusive lower bounds.
454+
# are defined using exclusive lower bounds. The tier bounds are defined based on
455+
# the total quantity rather than the number of packages, so they must be multiples
456+
# of the package size.
455457
#
456458
# @return [Array<Orb::Models::PriceCreateParams::TieredPackageConfig::Tier>]
457459
required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredPackageConfig::Tier] }

rbi/orb/models/new_floating_tiered_package_price.rbi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ module Orb
327327
attr_accessor :package_size
328328

329329
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
330-
# are defined using exclusive lower bounds.
330+
# are defined using exclusive lower bounds. The tier bounds are defined based on
331+
# the total quantity rather than the number of packages, so they must be multiples
332+
# of the package size.
331333
sig do
332334
returns(
333335
T::Array[
@@ -351,7 +353,9 @@ module Orb
351353
# Package size
352354
package_size:,
353355
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
354-
# are defined using exclusive lower bounds.
356+
# are defined using exclusive lower bounds. The tier bounds are defined based on
357+
# the total quantity rather than the number of packages, so they must be multiples
358+
# of the package size.
355359
tiers:
356360
)
357361
end

rbi/orb/models/new_plan_tiered_package_price.rbi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ module Orb
328328
attr_accessor :package_size
329329

330330
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
331-
# are defined using exclusive lower bounds.
331+
# are defined using exclusive lower bounds. The tier bounds are defined based on
332+
# the total quantity rather than the number of packages, so they must be multiples
333+
# of the package size.
332334
sig do
333335
returns(
334336
T::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier]
@@ -350,7 +352,9 @@ module Orb
350352
# Package size
351353
package_size:,
352354
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
353-
# are defined using exclusive lower bounds.
355+
# are defined using exclusive lower bounds. The tier bounds are defined based on
356+
# the total quantity rather than the number of packages, so they must be multiples
357+
# of the package size.
354358
tiers:
355359
)
356360
end

rbi/orb/models/new_subscription_tiered_package_price.rbi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ module Orb
347347
attr_accessor :package_size
348348

349349
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
350-
# are defined using exclusive lower bounds.
350+
# are defined using exclusive lower bounds. The tier bounds are defined based on
351+
# the total quantity rather than the number of packages, so they must be multiples
352+
# of the package size.
351353
sig do
352354
returns(
353355
T::Array[
@@ -371,7 +373,9 @@ module Orb
371373
# Package size
372374
package_size:,
373375
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
374-
# are defined using exclusive lower bounds.
376+
# are defined using exclusive lower bounds. The tier bounds are defined based on
377+
# the total quantity rather than the number of packages, so they must be multiples
378+
# of the package size.
375379
tiers:
376380
)
377381
end

rbi/orb/models/price.rbi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,9 @@ module Orb
24692469
attr_accessor :package_size
24702470

24712471
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
2472-
# are defined using exclusive lower bounds.
2472+
# are defined using exclusive lower bounds. The tier bounds are defined based on
2473+
# the total quantity rather than the number of packages, so they must be multiples
2474+
# of the package size.
24732475
sig do
24742476
returns(
24752477
T::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier]
@@ -2491,7 +2493,9 @@ module Orb
24912493
# Package size
24922494
package_size:,
24932495
# Apply tiered pricing after rounding up the quantity to the package size. Tiers
2494-
# are defined using exclusive lower bounds.
2496+
# are defined using exclusive lower bounds. The tier bounds are defined based on
2497+
# the total quantity rather than the number of packages, so they must be multiples
2498+
# of the package size.
24952499
tiers:
24962500
)
24972501
end

0 commit comments

Comments
 (0)