From f7cc95244aab1e0e7f8f7ccc6f651b7544e54dfb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:11:11 +0000 Subject: [PATCH 1/6] chore(internal): version bump (#100) --- sig/orb/version.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index afae3b99..fe19b67a 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.19" + VERSION: "0.1.0-alpha.20" end From 8b2b509a07bd74385e63fb8a016e5b916e884946 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Mar 2025 23:29:11 +0000 Subject: [PATCH 2/6] chore: update custom timeout header name (#102) --- lib/orb/base_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index 46c99940..1604c834 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -246,8 +246,8 @@ def initialize( end timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) - unless headers.key?("x-stainless-read-timeout") || timeout.zero? - headers["x-stainless-read-timeout"] = timeout.to_s + unless headers.key?("x-stainless-timeout") || timeout.zero? + headers["x-stainless-timeout"] = timeout.to_s end headers.reject! { |_, v| v.to_s.empty? } From 1244c07b21d5c1c6753e1f5f1f96ed997ed8b1cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Mar 2025 23:47:58 +0000 Subject: [PATCH 3/6] chore: bump lockfile (#103) --- Gemfile.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ad998e72..ea0acd3f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -93,7 +93,7 @@ GEM rbs (3.8.1) logger regexp_parser (2.10.0) - rubocop (1.72.2) + rubocop (1.73.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -108,13 +108,13 @@ GEM parser (>= 3.3.1.0) ruby-progressbar (1.13.0) securerandom (0.4.1) - sorbet (0.5.11856) - sorbet-static (= 0.5.11856) - sorbet-runtime (0.5.11856) - sorbet-static (0.5.11856-x86_64-linux) - sorbet-static-and-runtime (0.5.11856) - sorbet (= 0.5.11856) - sorbet-runtime (= 0.5.11856) + sorbet (0.5.11888) + sorbet-static (= 0.5.11888) + sorbet-runtime (0.5.11888) + sorbet-static (0.5.11888-x86_64-linux) + sorbet-static-and-runtime (0.5.11888) + sorbet (= 0.5.11888) + sorbet-runtime (= 0.5.11888) spoom (1.5.4) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -157,7 +157,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - uri (1.0.2) + uri (1.0.3) webrick (1.9.1) yard (0.9.37) yard-sorbet (0.9.0) From 1ce27e9467cd10ebeb1ac5b6d8079faeb65867b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Mar 2025 15:28:31 +0000 Subject: [PATCH 4/6] chore: rename misleading variable (#104) --- lib/orb/base_client.rb | 2 +- lib/orb/base_page.rb | 4 ++-- lib/orb/page.rb | 8 ++++---- rbi/lib/orb/base_page.rbi | 4 ++-- rbi/lib/orb/page.rbi | 4 ++-- sig/orb/base_page.rbs | 2 +- sig/orb/page.rbs | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index 1604c834..f05611cb 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -447,7 +447,7 @@ def request(req) in { stream: Class => st } st.new(model: model, url: url, status: status, response: response, messages: decoded) in { page: Class => page } - page.new(client: self, req: req, headers: response, unwrapped: decoded) + page.new(client: self, req: req, headers: response, page_data: decoded) else unwrapped = Orb::Util.dig(decoded, req[:unwrap]) Orb::Converter.coerce(model, unwrapped) diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb index 7094f8cc..a99f9196 100644 --- a/lib/orb/base_page.rb +++ b/lib/orb/base_page.rb @@ -33,8 +33,8 @@ def to_enum = super(:auto_paging_each) # # @param client [Orb::BaseClient] # # @param req [Hash{Symbol=>Object}] # # @param headers [Hash{String=>String}, Net::HTTPHeader] - # # @param unwrapped [Object] + # # @param page_data [Object] # # - # def initialize(client:, req:, headers:, unwrapped:); end + # def initialize(client:, req:, headers:, page_data:); end end end diff --git a/lib/orb/page.rb b/lib/orb/page.rb index ae265f49..56723eb3 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -36,20 +36,20 @@ class Page # @param client [Orb::BaseClient] # @param req [Hash{Symbol=>Object}] # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param unwrapped [Hash{Symbol=>Object}] + # @param page_data [Hash{Symbol=>Object}] # - def initialize(client:, req:, headers:, unwrapped:) + def initialize(client:, req:, headers:, page_data:) @client = client @req = req model = req.fetch(:model) - case unwrapped + case page_data in {data: Array | nil => data} @data = data&.map { model.coerce(_1) } else end - case unwrapped + case page_data in {pagination_metadata: Hash | nil => pagination_metadata} @pagination_metadata = Orb::Page::PaginationMetadata.coerce(pagination_metadata) else diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi index 4410d232..3c60ec23 100644 --- a/rbi/lib/orb/base_page.rbi +++ b/rbi/lib/orb/base_page.rbi @@ -29,11 +29,11 @@ module Orb client: Orb::BaseClient, req: Orb::BaseClient::RequestComponentsShape, headers: T.any(T::Hash[String, String], Net::HTTPHeader), - unwrapped: T.anything + page_data: T.anything ) .void end - def initialize(client:, req:, headers:, unwrapped:) + def initialize(client:, req:, headers:, page_data:) end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index d335946d..f8c9966b 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -27,11 +27,11 @@ module Orb client: Orb::BaseClient, req: Orb::BaseClient::RequestComponentsShape, headers: T.any(T::Hash[String, String], Net::HTTPHeader), - unwrapped: T::Hash[Symbol, T.anything] + page_data: T::Hash[Symbol, T.anything] ) .void end - def initialize(client:, req:, headers:, unwrapped:) + def initialize(client:, req:, headers:, page_data:) end class PaginationMetadata < Orb::BaseModel diff --git a/sig/orb/base_page.rbs b/sig/orb/base_page.rbs index 7cb838ef..2f15112f 100644 --- a/sig/orb/base_page.rbs +++ b/sig/orb/base_page.rbs @@ -14,7 +14,7 @@ module Orb client: Orb::BaseClient, req: Orb::BaseClient::request_components, headers: ::Hash[String, String], - unwrapped: top + page_data: top ) -> void end end diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 0a8f13e1..04768fce 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -10,7 +10,7 @@ module Orb client: Orb::BaseClient, req: Orb::BaseClient::request_components, headers: ::Hash[String, String], - unwrapped: ::Hash[Symbol, top] + page_data: ::Hash[Symbol, top] ) -> void type pagination_metadata = { has_more: bool, next_cursor: String? } From 7968ec90b70b5d3651cb27c8f2ea70b5cf09fd65 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:10:51 +0000 Subject: [PATCH 5/6] feat(api): api update (#105) --- .stats.yml | 2 +- lib/orb/models/invoice.rb | 4 +++- lib/orb/models/invoice_fetch_upcoming_response.rb | 4 +++- lib/orb/models/invoice_line_item_create_response.rb | 4 +++- lib/orb/models/subscription.rb | 9 +++++---- lib/orb/models/subscription_cancel_response.rb | 9 +++++---- lib/orb/models/subscription_create_response.rb | 9 +++++---- lib/orb/models/subscription_price_intervals_response.rb | 9 +++++---- .../models/subscription_schedule_plan_change_response.rb | 9 +++++---- lib/orb/models/subscription_trigger_phase_response.rb | 9 +++++---- .../subscription_unschedule_cancellation_response.rb | 9 +++++---- ...ion_unschedule_fixed_fee_quantity_updates_response.rb | 9 +++++---- ...scription_unschedule_pending_plan_changes_response.rb | 9 +++++---- .../subscription_update_fixed_fee_quantity_response.rb | 9 +++++---- lib/orb/models/subscription_update_trial_response.rb | 9 +++++---- 15 files changed, 65 insertions(+), 48 deletions(-) diff --git a/.stats.yml b/.stats.yml index 715ea230..b21f5baa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 6d9314d7..f132ccf6 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -1182,7 +1182,9 @@ class LineItem < Orb::BaseModel required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments (ie. maximums, minimums, discounts) applied to the line item. + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). # # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::Invoice::LineItem::Adjustment] } diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 7afd452d..fc134a61 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -1181,7 +1181,9 @@ class LineItem < Orb::BaseModel required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments (ie. maximums, minimums, discounts) applied to the line item. + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). # # @return [Array] required :adjustments, diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 21633a97..a14ac252 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -17,7 +17,9 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments (ie. maximums, minimums, discounts) applied to the line item. + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). # # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment] } diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 21d30e23..e7c6ccd8 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -16,7 +16,8 @@ class Subscription < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, -> { Orb::ArrayOf[Orb::Models::Subscription::AdjustmentInterval] } @@ -96,7 +97,7 @@ class Subscription < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, -> { Orb::ArrayOf[union: Orb::Models::Subscription::DiscountInterval] } @@ -119,7 +120,7 @@ class Subscription < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, -> { Orb::ArrayOf[Orb::Models::Subscription::MaximumInterval] } @@ -134,7 +135,7 @@ class Subscription < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, -> { Orb::ArrayOf[Orb::Models::Subscription::MinimumInterval] } diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 25b58b51..1eb2e1ba 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -16,7 +16,8 @@ class SubscriptionCancelResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionCancelResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionCancelResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MaximumInterval] } @@ -136,7 +137,7 @@ class SubscriptionCancelResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MinimumInterval] } diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index f9726940..54371910 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -16,7 +16,8 @@ class SubscriptionCreateResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionCreateResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionCreateResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MaximumInterval] } @@ -136,7 +137,7 @@ class SubscriptionCreateResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MinimumInterval] } diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 852c30f3..e0a1383e 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -16,7 +16,8 @@ class SubscriptionPriceIntervalsResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionPriceIntervalsResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionPriceIntervalsResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionPriceIntervalsResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index cea99f8c..d817ccab 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -16,7 +16,8 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 7b844737..b64703ad 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -16,7 +16,8 @@ class SubscriptionTriggerPhaseResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionTriggerPhaseResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionTriggerPhaseResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionTriggerPhaseResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index 02d4d7d1..2c909a1e 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -16,7 +16,8 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb index 085353bf..c429fb35 100644 --- a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +++ b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb @@ -16,7 +16,8 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb index cf1c810e..869bf1eb 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -16,7 +16,8 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb index 13c3001e..fe593c68 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -16,7 +16,8 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index cb625994..3b88f545 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -16,7 +16,8 @@ class SubscriptionUpdateTrialResponse < Orb::BaseModel required :active_plan_phase_order, Integer, nil?: true # @!attribute adjustment_intervals - # The adjustment intervals for this subscription. + # The adjustment intervals for this subscription sorted by the start_date of the + # adjustment interval. # # @return [Array] required :adjustment_intervals, @@ -97,7 +98,7 @@ class SubscriptionUpdateTrialResponse < Orb::BaseModel required :default_invoice_memo, String, nil?: true # @!attribute discount_intervals - # The discount intervals for this subscription. + # The discount intervals for this subscription sorted by the start_date. # # @return [Array] required :discount_intervals, @@ -121,7 +122,7 @@ class SubscriptionUpdateTrialResponse < Orb::BaseModel required :invoicing_threshold, String, nil?: true # @!attribute maximum_intervals - # The maximum intervals for this subscription. + # The maximum intervals for this subscription sorted by the start_date. # # @return [Array] required :maximum_intervals, @@ -137,7 +138,7 @@ class SubscriptionUpdateTrialResponse < Orb::BaseModel required :metadata, Orb::HashOf[String] # @!attribute minimum_intervals - # The minimum intervals for this subscription. + # The minimum intervals for this subscription sorted by the start_date. # # @return [Array] required :minimum_intervals, From 4ec3548d4c21dba77c849445b055175cc5f66aab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:11:16 +0000 Subject: [PATCH 6/6] release: 0.1.0-alpha.21 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 16 ++++++++++++++++ Gemfile.lock | 2 +- lib/orb/version.rb | 2 +- rbi/lib/orb/version.rbi | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fac14074..7c31fce2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.20" + ".": "0.1.0-alpha.21" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 566ebebc..36f01f13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.1.0-alpha.21 (2025-03-06) + +Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.20...v0.1.0-alpha.21) + +### Features + +* **api:** api update ([#105](https://github.com/orbcorp/orb-ruby/issues/105)) ([7968ec9](https://github.com/orbcorp/orb-ruby/commit/7968ec90b70b5d3651cb27c8f2ea70b5cf09fd65)) + + +### Chores + +* bump lockfile ([#103](https://github.com/orbcorp/orb-ruby/issues/103)) ([1244c07](https://github.com/orbcorp/orb-ruby/commit/1244c07b21d5c1c6753e1f5f1f96ed997ed8b1cc)) +* **internal:** version bump ([#100](https://github.com/orbcorp/orb-ruby/issues/100)) ([f7cc952](https://github.com/orbcorp/orb-ruby/commit/f7cc95244aab1e0e7f8f7ccc6f651b7544e54dfb)) +* rename misleading variable ([#104](https://github.com/orbcorp/orb-ruby/issues/104)) ([1ce27e9](https://github.com/orbcorp/orb-ruby/commit/1ce27e9467cd10ebeb1ac5b6d8079faeb65867b2)) +* update custom timeout header name ([#102](https://github.com/orbcorp/orb-ruby/issues/102)) ([8b2b509](https://github.com/orbcorp/orb-ruby/commit/8b2b509a07bd74385e63fb8a016e5b916e884946)) + ## 0.1.0-alpha.20 (2025-03-05) Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.19...v0.1.0-alpha.20) diff --git a/Gemfile.lock b/Gemfile.lock index ea0acd3f..8addb7bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.20) + orb (0.1.0.pre.alpha.21) connection_pool GEM diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 2b131d8c..37ac6a1e 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.1.0-alpha.20" + VERSION = "0.1.0-alpha.21" end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index f62ec2bd..2303718c 100644 --- a/rbi/lib/orb/version.rbi +++ b/rbi/lib/orb/version.rbi @@ -1,5 +1,5 @@ # typed: strong module Orb - VERSION = "0.1.0-alpha.20" + VERSION = "0.1.0-alpha.21" end