Skip to content

Commit 9f52897

Browse files
feat(api): api update
1 parent 98aaf7c commit 9f52897

File tree

5 files changed

+33
-16
lines changed

5 files changed

+33
-16
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-4ad3b44ca7f484243d8706b6aa7f4498fc5bf2b37fadf3da0a06d657e482c08f.yml
3-
openapi_spec_hash: 9ead1a2aae36be1086c627c3636064ea
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e639b12e0daebce74f42d1f31f675bda4287b9c749dd7d4620a1e96a83343ec4.yml
3+
openapi_spec_hash: 51eb3d47b25e299de670b2d52f5e9017
44
config_hash: e6db17547fe854b1c240407cf4c6dc9e

lib/orb/models/plan.rb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ class Plan < Orb::Internal::Type::BaseModel
1717
required :adjustments, -> { Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment] }
1818

1919
# @!attribute base_plan
20+
# @deprecated
21+
#
22+
# Legacy field representing the parent plan if the current plan is a 'child plan',
23+
# overriding prices from the parent.
2024
#
2125
# @return [Orb::Models::Plan::BasePlan, nil]
2226
required :base_plan, -> { Orb::Plan::BasePlan }, nil?: true
2327

2428
# @!attribute base_plan_id
25-
# The parent plan id if the given plan was created by overriding one or more of
26-
# the parent's prices
29+
# @deprecated
30+
#
31+
# Legacy field representing the parent plan ID if the current plan is a 'child
32+
# plan', overriding prices from the parent.
2733
#
2834
# @return [String, nil]
2935
required :base_plan_id, String, nil?: true
@@ -168,9 +174,9 @@ class Plan < Orb::Internal::Type::BaseModel
168174
#
169175
# @param adjustments [Array<Orb::Models::PlanPhaseUsageDiscountAdjustment, Orb::Models::PlanPhaseAmountDiscountAdjustment, Orb::Models::PlanPhasePercentageDiscountAdjustment, Orb::Models::PlanPhaseMinimumAdjustment, Orb::Models::PlanPhaseMaximumAdjustment>] Adjustments for this plan. If the plan has phases, this includes adjustments acr
170176
#
171-
# @param base_plan [Orb::Models::Plan::BasePlan, nil]
177+
# @param base_plan [Orb::Models::Plan::BasePlan, nil] Legacy field representing the parent plan if the current plan is a 'child plan',
172178
#
173-
# @param base_plan_id [String, nil] The parent plan id if the given plan was created by overriding one or more of th
179+
# @param base_plan_id [String, nil] Legacy field representing the parent plan ID if the current plan is a 'child pla
174180
#
175181
# @param created_at [Time]
176182
#
@@ -231,6 +237,8 @@ module Adjustment
231237
# @return [Array(Orb::Models::PlanPhaseUsageDiscountAdjustment, Orb::Models::PlanPhaseAmountDiscountAdjustment, Orb::Models::PlanPhasePercentageDiscountAdjustment, Orb::Models::PlanPhaseMinimumAdjustment, Orb::Models::PlanPhaseMaximumAdjustment)]
232238
end
233239

240+
# @deprecated
241+
#
234242
# @see Orb::Models::Plan#base_plan
235243
class BasePlan < Orb::Internal::Type::BaseModel
236244
# @!attribute id
@@ -255,6 +263,9 @@ class BasePlan < Orb::Internal::Type::BaseModel
255263
# Some parameter documentations has been truncated, see
256264
# {Orb::Models::Plan::BasePlan} for more details.
257265
#
266+
# Legacy field representing the parent plan if the current plan is a 'child plan',
267+
# overriding prices from the parent.
268+
#
258269
# @param id [String, nil]
259270
#
260271
# @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a

lib/orb/models/subscription_price_intervals_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,8 +1591,8 @@ class Edit < Orb::Internal::Type::BaseModel
15911591

15921592
# @!attribute can_defer_billing
15931593
# If true, ending an in-arrears price interval mid-cycle will defer billing the
1594-
# final line itemuntil the next scheduled invoice. If false, it will be billed on
1595-
# its end date. If not provided, behaviorwill follow account default.
1594+
# final line item until the next scheduled invoice. If false, it will be billed on
1595+
# its end date. If not provided, behavior will follow account default.
15961596
#
15971597
# @return [Boolean, nil]
15981598
optional :can_defer_billing, Orb::Internal::Type::Boolean, nil?: true

rbi/orb/models/plan.rbi

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ module Orb
1313
sig { returns(T::Array[Orb::Plan::Adjustment::Variants]) }
1414
attr_accessor :adjustments
1515

16+
# Legacy field representing the parent plan if the current plan is a 'child plan',
17+
# overriding prices from the parent.
1618
sig { returns(T.nilable(Orb::Plan::BasePlan)) }
1719
attr_reader :base_plan
1820

1921
sig { params(base_plan: T.nilable(Orb::Plan::BasePlan::OrHash)).void }
2022
attr_writer :base_plan
2123

22-
# The parent plan id if the given plan was created by overriding one or more of
23-
# the parent's prices
24+
# Legacy field representing the parent plan ID if the current plan is a 'child
25+
# plan', overriding prices from the parent.
2426
sig { returns(T.nilable(String)) }
2527
attr_accessor :base_plan_id
2628

@@ -205,9 +207,11 @@ module Orb
205207
# Adjustments for this plan. If the plan has phases, this includes adjustments
206208
# across all phases of the plan.
207209
adjustments:,
210+
# Legacy field representing the parent plan if the current plan is a 'child plan',
211+
# overriding prices from the parent.
208212
base_plan:,
209-
# The parent plan id if the given plan was created by overriding one or more of
210-
# the parent's prices
213+
# Legacy field representing the parent plan ID if the current plan is a 'child
214+
# plan', overriding prices from the parent.
211215
base_plan_id:,
212216
created_at:,
213217
# An ISO 4217 currency string or custom pricing unit (`credits`) for this plan's
@@ -320,6 +324,8 @@ module Orb
320324
sig { returns(T.nilable(String)) }
321325
attr_accessor :name
322326

327+
# Legacy field representing the parent plan if the current plan is a 'child plan',
328+
# overriding prices from the parent.
323329
sig do
324330
params(
325331
id: T.nilable(String),

rbi/orb/models/subscription_price_intervals_params.rbi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,8 +2799,8 @@ module Orb
27992799
attr_accessor :billing_cycle_day
28002800

28012801
# If true, ending an in-arrears price interval mid-cycle will defer billing the
2802-
# final line itemuntil the next scheduled invoice. If false, it will be billed on
2803-
# its end date. If not provided, behaviorwill follow account default.
2802+
# final line item until the next scheduled invoice. If false, it will be billed on
2803+
# its end date. If not provided, behavior will follow account default.
28042804
sig { returns(T.nilable(T::Boolean)) }
28052805
attr_accessor :can_defer_billing
28062806

@@ -2885,8 +2885,8 @@ module Orb
28852885
# must have the same billing cycle day.
28862886
billing_cycle_day: nil,
28872887
# If true, ending an in-arrears price interval mid-cycle will defer billing the
2888-
# final line itemuntil the next scheduled invoice. If false, it will be billed on
2889-
# its end date. If not provided, behaviorwill follow account default.
2888+
# final line item until the next scheduled invoice. If false, it will be billed on
2889+
# its end date. If not provided, behavior will follow account default.
28902890
can_defer_billing: nil,
28912891
# The updated end date of this price interval. If not specified, the end date will
28922892
# not be updated.

0 commit comments

Comments
 (0)