diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 380b6f91..3188cedb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.24" + ".": "0.1.0-alpha.25" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index f6e24a32..a9fd9444 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-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-979330185e8fda7b2bc2440075fe81c66132fc87ff3c548e93dd05db35ba3172.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c6dd5e..f3a1770f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.1.0-alpha.25 (2025-03-11) + +Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.24...v0.1.0-alpha.25) + +### Features + +* **api:** api update ([#137](https://github.com/orbcorp/orb-ruby/issues/137)) ([7f2a33b](https://github.com/orbcorp/orb-ruby/commit/7f2a33b6f4794aefe50733a9867f5be9c1314482)) + + +### Chores + +* **internal:** codegen related update ([#132](https://github.com/orbcorp/orb-ruby/issues/132)) ([d86f52b](https://github.com/orbcorp/orb-ruby/commit/d86f52ba1a56416fe826861e19bcebf314287bab)) +* **internal:** codegen related update ([#133](https://github.com/orbcorp/orb-ruby/issues/133)) ([55e3ee5](https://github.com/orbcorp/orb-ruby/commit/55e3ee56ef6931491e3da4853bc92bcec4a8ec38)) +* **internal:** codegen related update ([#135](https://github.com/orbcorp/orb-ruby/issues/135)) ([4dde2f2](https://github.com/orbcorp/orb-ruby/commit/4dde2f205ea576930473bacad398511a72d23cb5)) +* **internal:** codegen related update ([#136](https://github.com/orbcorp/orb-ruby/issues/136)) ([c6b55f4](https://github.com/orbcorp/orb-ruby/commit/c6b55f457aebc74a4edac6bbcd51363c9be88214)) +* **internal:** version bump ([#130](https://github.com/orbcorp/orb-ruby/issues/130)) ([a9aff2a](https://github.com/orbcorp/orb-ruby/commit/a9aff2a5177db007f46407a3b76dd8ce35ec46af)) +* pagination ([#134](https://github.com/orbcorp/orb-ruby/issues/134)) ([9265d32](https://github.com/orbcorp/orb-ruby/commit/9265d320d1a3e5b4647eff35ec9e3145d59ffea5)) + ## 0.1.0-alpha.24 (2025-03-11) Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.23...v0.1.0-alpha.24) diff --git a/Gemfile.lock b/Gemfile.lock index 0f8c7d8f..a0bfc9a3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.24) + orb (0.1.0.pre.alpha.25) connection_pool GEM diff --git a/lib/orb/models/events/backfill_create_params.rb b/lib/orb/models/events/backfill_create_params.rb index e7ea0494..2bb75e0d 100644 --- a/lib/orb/models/events/backfill_create_params.rb +++ b/lib/orb/models/events/backfill_create_params.rb @@ -9,13 +9,17 @@ class BackfillCreateParams < Orb::BaseModel include Orb::RequestParameters # @!attribute timeframe_end - # The (exclusive) end of the usage timeframe affected by this backfill. + # The (exclusive) end of the usage timeframe affected by this backfill. By + # default, Orb allows backfills up to 10 days in duration at a time. Reach out to + # discuss extending this limit and your use case. # # @return [Time] required :timeframe_end, Time # @!attribute timeframe_start - # The (inclusive) start of the usage timeframe affected by this backfill. + # The (inclusive) start of the usage timeframe affected by this backfill. By + # default, Orb allows backfills up to 10 days in duration at a time. Reach out to + # discuss extending this limit and your use case. # # @return [Time] required :timeframe_start, Time diff --git a/lib/orb/page.rb b/lib/orb/page.rb index 56723eb3..5d81fd27 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -68,7 +68,7 @@ def next_page? # def next_page unless next_page? - raise RuntimeError.new("No more pages available; please check #next_page? before calling #next_page") + raise RuntimeError.new("No more pages available. Please check #next_page? before calling ##{__method__}") end req = Orb::Util.deep_merge(@req, {query: {cursor: pagination_metadata&.next_cursor}}) @@ -79,7 +79,7 @@ def next_page # def auto_paging_each(&blk) unless block_given? - raise ArgumentError.new("A block must be given to #auto_paging_each") + raise ArgumentError.new("A block must be given to ##{__method__}") end page = self loop do diff --git a/lib/orb/resources/events/backfills.rb b/lib/orb/resources/events/backfills.rb index ce699ffa..b8cbb7ee 100644 --- a/lib/orb/resources/events/backfills.rb +++ b/lib/orb/resources/events/backfills.rb @@ -44,9 +44,13 @@ class Backfills # # @param params [Orb::Models::Events::BackfillCreateParams, Hash{Symbol=>Object}] . # - # @option params [Time] :timeframe_end The (exclusive) end of the usage timeframe affected by this backfill. + # @option params [Time] :timeframe_end The (exclusive) end of the usage timeframe affected by this backfill. By + # default, Orb allows backfills up to 10 days in duration at a time. Reach out to + # discuss extending this limit and your use case. # - # @option params [Time] :timeframe_start The (inclusive) start of the usage timeframe affected by this backfill. + # @option params [Time] :timeframe_start The (inclusive) start of the usage timeframe affected by this backfill. By + # default, Orb allows backfills up to 10 days in duration at a time. Reach out to + # discuss extending this limit and your use case. # # @option params [Time, nil] :close_time The time at which no more events will be accepted for this backfill. The # backfill will automatically begin reflecting throughout Orb at the close time. diff --git a/lib/orb/version.rb b/lib/orb/version.rb index f1b0f344..2e1f77c7 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.24" + VERSION = "0.1.0-alpha.25" end diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 57381283..bcd28afd 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -312,7 +312,7 @@ module Orb trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + ) .returns(T.attached_class) end def self.new( @@ -403,7 +403,7 @@ module Orb Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum ) - ) + ) end def adjustment end @@ -417,7 +417,7 @@ module Orb Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum ) - ) + ) .returns( T.any( Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, @@ -467,7 +467,7 @@ module Orb end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) - ) + ) .returns(T.attached_class) end def self.new(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) @@ -535,7 +535,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) @@ -595,7 +595,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) @@ -655,7 +655,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) @@ -724,7 +724,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) @@ -785,7 +785,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) @@ -913,7 +913,7 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) ) - ) + ) end def price end @@ -949,7 +949,7 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) ) - ) + ) .returns( T.nilable( T.any( @@ -1041,7 +1041,7 @@ module Orb ), price_id: T.nilable(String), start_date: T.nilable(Time) - ) + ) .returns(T.attached_class) end def self.new( @@ -1148,8 +1148,12 @@ module Orb sig do override - .returns({amount: String, cadence: Symbol, currency: String, -expires_at_end_of_cadence: T::Boolean}) + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -1211,7 +1215,7 @@ expires_at_end_of_cadence: T::Boolean}) amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) + ) .returns(T.attached_class) end def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) @@ -1314,7 +1318,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -1324,7 +1328,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration @@ -1379,7 +1383,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -1389,7 +1393,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration @@ -1440,7 +1444,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -1643,7 +1647,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) + ) end def package_config end @@ -1651,7 +1655,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig ) @@ -1680,7 +1684,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -1690,7 +1694,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration @@ -1745,7 +1749,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -1755,7 +1759,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration @@ -1806,7 +1810,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -2005,7 +2009,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) + ) .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) end def matrix_config=(_) @@ -2048,7 +2052,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -2058,7 +2062,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration @@ -2113,7 +2117,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -2123,7 +2127,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration @@ -2174,7 +2178,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -2266,7 +2270,7 @@ expires_at_end_of_cadence: T::Boolean}) T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) end def matrix_values end @@ -2276,7 +2280,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) .returns( T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue @@ -2293,7 +2297,7 @@ expires_at_end_of_cadence: T::Boolean}) matrix_values: T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) .returns(T.attached_class) end def self.new(default_unit_amount:, dimensions:, matrix_values:) @@ -2331,8 +2335,9 @@ expires_at_end_of_cadence: T::Boolean}) def unit_amount=(_) end - sig { - params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).returns(T.attached_class) } + sig do + params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).returns(T.attached_class) + end def self.new(dimension_values:, unit_amount:) end @@ -2461,7 +2466,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) + ) .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) end def tiered_config=(_) @@ -2488,7 +2493,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -2498,7 +2503,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration @@ -2553,7 +2558,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -2563,7 +2568,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration @@ -2614,7 +2619,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -2688,7 +2693,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) end def tiers end @@ -2696,7 +2701,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) .returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) @@ -2707,7 +2712,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -2749,13 +2754,15 @@ expires_at_end_of_cadence: T::Boolean}) def last_unit=(_) end - sig { - params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).returns(T.attached_class) } + sig do + params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).returns(T.attached_class) + end def self.new(first_unit:, unit_amount:, last_unit: nil) end - sig { - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } + sig do + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end def to_hash end end @@ -2876,7 +2883,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) + ) end def tiered_bps_config end @@ -2884,7 +2891,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) @@ -2913,7 +2920,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -2923,7 +2930,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration @@ -2978,7 +2985,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -2988,7 +2995,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration @@ -3039,7 +3046,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -3115,7 +3122,7 @@ expires_at_end_of_cadence: T::Boolean}) T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) end def tiers end @@ -3125,7 +3132,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) .returns( T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier @@ -3140,7 +3147,7 @@ expires_at_end_of_cadence: T::Boolean}) tiers: T::Array[ Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3198,7 +3205,7 @@ expires_at_end_of_cadence: T::Boolean}) minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) + ) .returns(T.attached_class) end def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) @@ -3207,8 +3214,12 @@ expires_at_end_of_cadence: T::Boolean}) sig do override .returns( - {bps: Float, minimum_amount: String, maximum_amount: T.nilable(String), -per_unit_maximum: T.nilable(String)} + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } ) end def to_hash @@ -3360,7 +3371,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -3370,7 +3381,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration @@ -3425,7 +3436,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -3435,7 +3446,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration @@ -3486,7 +3497,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -3665,7 +3676,7 @@ per_unit_maximum: T.nilable(String)} sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) + ) end def bulk_bps_config end @@ -3673,7 +3684,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) @@ -3734,7 +3745,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -3744,7 +3755,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration @@ -3799,7 +3810,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -3809,7 +3820,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration @@ -3860,7 +3871,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -3917,7 +3928,7 @@ per_unit_maximum: T.nilable(String)} sig do returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) + ) end def tiers end @@ -3925,7 +3936,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) + ) .returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) @@ -3936,7 +3947,7 @@ per_unit_maximum: T.nilable(String)} sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3985,8 +3996,9 @@ per_unit_maximum: T.nilable(String)} def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end - sig { - override.returns({bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)}) } + sig do + override.returns({bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)}) + end def to_hash end end @@ -4153,7 +4165,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -4163,7 +4175,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration @@ -4218,7 +4230,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -4228,7 +4240,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration @@ -4279,7 +4291,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -4336,7 +4348,7 @@ per_unit_maximum: T.nilable(String)} sig do returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) end def tiers end @@ -4344,7 +4356,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) .returns( T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) @@ -4355,7 +4367,7 @@ per_unit_maximum: T.nilable(String)} sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -4557,7 +4569,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -4567,7 +4579,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration @@ -4622,7 +4634,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -4632,7 +4644,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration @@ -4683,7 +4695,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -4894,7 +4906,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -4904,7 +4916,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration @@ -4959,7 +4971,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -4969,7 +4981,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration @@ -5020,7 +5032,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -5231,7 +5243,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -5241,7 +5253,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration @@ -5296,7 +5308,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -5306,7 +5318,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration @@ -5357,7 +5369,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -5568,7 +5580,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -5578,7 +5590,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration @@ -5633,7 +5645,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -5643,7 +5655,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration @@ -5694,7 +5706,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -5905,7 +5917,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -5915,7 +5927,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration @@ -5970,7 +5982,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -5980,7 +5992,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration @@ -6031,7 +6043,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -6242,7 +6254,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -6252,7 +6264,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration @@ -6307,7 +6319,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -6317,7 +6329,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration @@ -6368,7 +6380,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -6579,7 +6591,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -6589,7 +6601,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration @@ -6644,7 +6656,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -6654,7 +6666,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration @@ -6705,7 +6717,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -6916,7 +6928,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -6926,7 +6938,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration @@ -6981,7 +6993,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -6991,7 +7003,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration @@ -7042,7 +7054,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -7253,7 +7265,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -7263,7 +7275,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration @@ -7318,7 +7330,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -7328,7 +7340,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration @@ -7379,7 +7391,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -7590,7 +7602,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -7600,7 +7612,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration @@ -7655,7 +7667,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -7665,7 +7677,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration @@ -7716,7 +7728,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -7927,7 +7939,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -7937,7 +7949,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration @@ -7992,7 +8004,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -8002,7 +8014,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration @@ -8053,7 +8065,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -8264,7 +8276,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -8274,7 +8286,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration @@ -8329,7 +8341,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -8339,7 +8351,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration @@ -8390,7 +8402,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -8601,7 +8613,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -8611,7 +8623,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration @@ -8666,7 +8678,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -8676,7 +8688,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration @@ -8727,7 +8739,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -8938,7 +8950,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -8948,7 +8960,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration @@ -9003,7 +9015,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -9013,7 +9025,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration @@ -9064,7 +9076,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -9275,7 +9287,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -9285,7 +9297,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration @@ -9340,7 +9352,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -9350,7 +9362,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration @@ -9401,7 +9413,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -9612,7 +9624,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -9622,7 +9634,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration @@ -9677,7 +9689,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -9687,7 +9699,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration @@ -9738,7 +9750,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -9949,7 +9961,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -9959,7 +9971,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration @@ -10014,7 +10026,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -10024,7 +10036,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration @@ -10075,7 +10087,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -10262,8 +10274,9 @@ per_unit_maximum: T.nilable(String)} def year=(_) end - sig { - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -10321,8 +10334,9 @@ per_unit_maximum: T.nilable(String)} def price_id=(_) end - sig { - params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) } + sig do + params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) + end def self.new(external_price_id: nil, price_id: nil) end @@ -10341,7 +10355,7 @@ per_unit_maximum: T.nilable(String)} Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum ) - ) + ) end def adjustment end @@ -10355,7 +10369,7 @@ per_unit_maximum: T.nilable(String)} Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum ) - ) + ) .returns( T.any( Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, @@ -10387,7 +10401,7 @@ per_unit_maximum: T.nilable(String)} Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum ), replaces_adjustment_id: String - ) + ) .returns(T.attached_class) end def self.new(adjustment:, replaces_adjustment_id:) @@ -10453,7 +10467,7 @@ per_unit_maximum: T.nilable(String)} percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) @@ -10513,7 +10527,7 @@ per_unit_maximum: T.nilable(String)} usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) @@ -10573,7 +10587,7 @@ per_unit_maximum: T.nilable(String)} applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) @@ -10642,7 +10656,7 @@ per_unit_maximum: T.nilable(String)} minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) @@ -10703,7 +10717,7 @@ per_unit_maximum: T.nilable(String)} maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) @@ -10831,7 +10845,7 @@ per_unit_maximum: T.nilable(String)} Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice ) ) - ) + ) end def price end @@ -10867,7 +10881,7 @@ per_unit_maximum: T.nilable(String)} Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice ) ) - ) + ) .returns( T.nilable( T.any( @@ -10950,7 +10964,7 @@ per_unit_maximum: T.nilable(String)} ) ), price_id: T.nilable(String) - ) + ) .returns(T.attached_class) end def self.new( @@ -11055,8 +11069,12 @@ per_unit_maximum: T.nilable(String)} sig do override - .returns({amount: String, cadence: Symbol, currency: String, -expires_at_end_of_cadence: T::Boolean}) + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -11118,7 +11136,7 @@ expires_at_end_of_cadence: T::Boolean}) amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) + ) .returns(T.attached_class) end def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) @@ -11196,7 +11214,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig - ) + ) .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) end def unit_config=(_) @@ -11223,7 +11241,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -11233,7 +11251,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration @@ -11288,7 +11306,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -11298,7 +11316,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration @@ -11349,7 +11367,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -11552,7 +11570,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) + ) end def package_config end @@ -11560,7 +11578,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig ) @@ -11589,7 +11607,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -11599,7 +11617,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration @@ -11654,7 +11672,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -11664,7 +11682,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration @@ -11715,7 +11733,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -11910,7 +11928,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) + ) end def matrix_config end @@ -11918,7 +11936,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) @@ -11963,7 +11981,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -11973,7 +11991,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration @@ -12028,7 +12046,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -12038,7 +12056,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration @@ -12089,7 +12107,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -12181,7 +12199,7 @@ expires_at_end_of_cadence: T::Boolean}) T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) end def matrix_values end @@ -12191,7 +12209,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) .returns( T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue @@ -12208,7 +12226,7 @@ expires_at_end_of_cadence: T::Boolean}) matrix_values: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] - ) + ) .returns(T.attached_class) end def self.new(default_unit_amount:, dimensions:, matrix_values:) @@ -12246,8 +12264,9 @@ expires_at_end_of_cadence: T::Boolean}) def unit_amount=(_) end - sig { - params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).returns(T.attached_class) } + sig do + params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).returns(T.attached_class) + end def self.new(dimension_values:, unit_amount:) end @@ -12372,7 +12391,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) + ) end def tiered_config end @@ -12380,7 +12399,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig ) @@ -12409,7 +12428,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -12419,7 +12438,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration @@ -12474,7 +12493,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -12484,7 +12503,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration @@ -12535,7 +12554,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -12609,7 +12628,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) end def tiers end @@ -12617,7 +12636,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) .returns( T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) @@ -12628,7 +12647,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -12670,13 +12689,15 @@ expires_at_end_of_cadence: T::Boolean}) def last_unit=(_) end - sig { - params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).returns(T.attached_class) } + sig do + params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).returns(T.attached_class) + end def self.new(first_unit:, unit_amount:, last_unit: nil) end - sig { - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } + sig do + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end def to_hash end end @@ -12797,7 +12818,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) + ) end def tiered_bps_config end @@ -12805,7 +12826,7 @@ expires_at_end_of_cadence: T::Boolean}) sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) @@ -12834,7 +12855,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -12844,7 +12865,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration @@ -12899,7 +12920,7 @@ expires_at_end_of_cadence: T::Boolean}) T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -12909,7 +12930,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration @@ -12960,7 +12981,7 @@ expires_at_end_of_cadence: T::Boolean}) metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -13036,7 +13057,7 @@ expires_at_end_of_cadence: T::Boolean}) T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) end def tiers end @@ -13046,7 +13067,7 @@ expires_at_end_of_cadence: T::Boolean}) _: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) .returns( T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier @@ -13061,7 +13082,7 @@ expires_at_end_of_cadence: T::Boolean}) tiers: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -13119,7 +13140,7 @@ expires_at_end_of_cadence: T::Boolean}) minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) + ) .returns(T.attached_class) end def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) @@ -13128,8 +13149,12 @@ expires_at_end_of_cadence: T::Boolean}) sig do override .returns( - {bps: Float, minimum_amount: String, maximum_amount: T.nilable(String), -per_unit_maximum: T.nilable(String)} + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } ) end def to_hash @@ -13281,7 +13306,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -13291,7 +13316,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration @@ -13346,7 +13371,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -13356,7 +13381,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration @@ -13407,7 +13432,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -13586,7 +13611,7 @@ per_unit_maximum: T.nilable(String)} sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) + ) end def bulk_bps_config end @@ -13594,7 +13619,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) + ) .returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) @@ -13655,7 +13680,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -13665,7 +13690,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration @@ -13720,7 +13745,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -13730,7 +13755,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration @@ -13781,7 +13806,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -13840,7 +13865,7 @@ per_unit_maximum: T.nilable(String)} T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] - ) + ) end def tiers end @@ -13850,7 +13875,7 @@ per_unit_maximum: T.nilable(String)} _: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] - ) + ) .returns( T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier @@ -13865,7 +13890,7 @@ per_unit_maximum: T.nilable(String)} tiers: T::Array[ Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -13916,8 +13941,9 @@ per_unit_maximum: T.nilable(String)} def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end - sig { - override.returns({bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)}) } + sig do + override.returns({bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)}) + end def to_hash end end @@ -14027,7 +14053,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig - ) + ) .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) end def bulk_config=(_) @@ -14086,7 +14112,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -14096,7 +14122,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration @@ -14151,7 +14177,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -14161,7 +14187,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration @@ -14212,7 +14238,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -14269,7 +14295,7 @@ per_unit_maximum: T.nilable(String)} sig do returns( T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) end def tiers end @@ -14277,7 +14303,7 @@ per_unit_maximum: T.nilable(String)} sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) .returns( T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) @@ -14288,7 +14314,7 @@ per_unit_maximum: T.nilable(String)} sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) + ) .returns(T.attached_class) end def self.new(tiers:) @@ -14490,7 +14516,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -14500,7 +14526,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration @@ -14555,7 +14581,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -14565,7 +14591,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration @@ -14616,7 +14642,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -14827,7 +14853,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -14837,7 +14863,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration @@ -14892,7 +14918,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -14902,7 +14928,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration @@ -14953,7 +14979,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -15164,7 +15190,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -15174,7 +15200,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration @@ -15229,7 +15255,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -15239,7 +15265,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration @@ -15290,7 +15316,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -15501,7 +15527,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -15511,7 +15537,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration @@ -15566,7 +15592,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -15576,7 +15602,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration @@ -15627,7 +15653,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -15838,7 +15864,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -15848,7 +15874,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration @@ -15903,7 +15929,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -15913,7 +15939,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration @@ -15964,7 +15990,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -16175,7 +16201,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -16185,7 +16211,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration @@ -16240,7 +16266,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -16250,7 +16276,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration @@ -16301,7 +16327,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -16512,7 +16538,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -16522,7 +16548,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration @@ -16577,7 +16603,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -16587,7 +16613,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration @@ -16638,7 +16664,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -16849,7 +16875,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -16859,7 +16885,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration @@ -16914,7 +16940,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -16924,7 +16950,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration @@ -16975,7 +17001,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -17186,7 +17212,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -17196,7 +17222,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration @@ -17251,7 +17277,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -17261,7 +17287,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration @@ -17312,7 +17338,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -17523,7 +17549,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -17533,7 +17559,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration @@ -17588,7 +17614,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -17598,7 +17624,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration @@ -17649,7 +17675,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -17860,7 +17886,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -17870,7 +17896,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration @@ -17925,7 +17951,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -17935,7 +17961,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration @@ -17986,7 +18012,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -18197,7 +18223,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -18207,7 +18233,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration @@ -18262,7 +18288,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -18272,7 +18298,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration @@ -18323,7 +18349,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -18534,7 +18560,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -18544,7 +18570,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration @@ -18599,7 +18625,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -18609,7 +18635,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration @@ -18660,7 +18686,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -18871,7 +18897,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -18881,7 +18907,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration @@ -18936,7 +18962,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -18946,7 +18972,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration @@ -18997,7 +19023,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -19208,7 +19234,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -19218,7 +19244,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration @@ -19273,7 +19299,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -19283,7 +19309,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration @@ -19334,7 +19360,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -19545,7 +19571,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -19555,7 +19581,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration @@ -19610,7 +19636,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -19620,7 +19646,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration @@ -19671,7 +19697,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( @@ -19882,7 +19908,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration ) - ) + ) end def billing_cycle_configuration end @@ -19892,7 +19918,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration @@ -19947,7 +19973,7 @@ per_unit_maximum: T.nilable(String)} T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) end def invoicing_cycle_configuration end @@ -19957,7 +19983,7 @@ per_unit_maximum: T.nilable(String)} _: T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration ) - ) + ) .returns( T.nilable( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration @@ -20008,7 +20034,7 @@ per_unit_maximum: T.nilable(String)} metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) + ) .returns(T.attached_class) end def self.new( diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi index 9e5330ee..a8443d36 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -258,38 +258,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -373,28 +373,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -434,18 +434,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -534,14 +534,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -632,14 +632,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -730,14 +730,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -836,15 +836,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -937,14 +937,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1014,7 +1014,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1077,13 +1079,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1164,13 +1166,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1251,13 +1253,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1339,7 +1341,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1387,12 +1391,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1457,12 +1461,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1535,20 +1539,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1560,74 +1564,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1682,48 +1686,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1851,7 +1855,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index 9ae6097a..8d50a659 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -24,10 +24,10 @@ module Orb sig do params( - allow_invoice_credit_or_void: T.nilable(T::Boolean), - effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + allow_invoice_credit_or_void: T.nilable(T::Boolean), + effective_date: T.nilable(Date), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ) .returns(T.attached_class) end def self.new(allow_invoice_credit_or_void: nil, effective_date: nil, request_options: {}) diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index 1d54e607..cda5bbc1 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -258,38 +258,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -373,28 +373,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -434,18 +434,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -534,14 +534,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -632,14 +632,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -730,14 +730,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -836,15 +836,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -937,14 +937,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1014,7 +1014,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1077,13 +1079,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1164,13 +1166,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1251,13 +1253,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1339,7 +1341,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1387,12 +1391,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1457,12 +1461,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1535,20 +1539,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1560,74 +1564,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1682,48 +1686,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1851,7 +1855,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index ffb16cc0..453c72f2 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -6,7 +6,14 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).returns(T.attached_class) } + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index 1028fc6e..22c8b2fb 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -258,38 +258,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -373,28 +373,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -434,18 +434,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -534,14 +534,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -632,14 +632,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -730,14 +730,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -836,15 +836,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -937,14 +937,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1014,7 +1014,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1077,13 +1079,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1164,13 +1166,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1251,13 +1253,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1339,7 +1341,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1387,12 +1391,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1457,12 +1461,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1535,20 +1539,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1560,74 +1564,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1682,48 +1686,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1851,7 +1855,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index ed9f233f..292455aa 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -25,8 +25,8 @@ module Orb sig do params( - _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] - ) + _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] + ) .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) end def adjustment_intervals=(_) @@ -42,16 +42,16 @@ module Orb sig do returns( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration - ) + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + ) end def billing_cycle_anchor_configuration end sig do params( - _: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration - ) + _: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + ) .returns( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration ) @@ -109,28 +109,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -154,16 +154,16 @@ module Orb sig do returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + ) end def fixed_fee_quantity_schedule end sig do params( - _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) + _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + ) .returns( T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] ) @@ -276,38 +276,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -391,28 +391,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -452,18 +452,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -552,14 +552,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -650,14 +650,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -748,14 +748,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -854,15 +854,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -955,14 +955,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1032,7 +1032,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1095,13 +1097,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1182,13 +1184,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1269,13 +1271,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1357,7 +1359,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1405,12 +1409,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1475,12 +1479,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1553,24 +1557,24 @@ module Orb sig do returns( - T.nilable( - T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition - ] - ) + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition - ] - ) + _: T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] ) + ) .returns( T.nilable( T::Array[ @@ -1584,74 +1588,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1706,50 +1710,50 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition - ] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1879,7 +1883,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index d3c80af2..19f23250 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -6,7 +6,14 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).returns(T.attached_class) } + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index fae077a6..755aa546 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -148,8 +148,8 @@ module Orb sig do params( - _: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] - ) + _: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] + ) .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) @@ -260,38 +260,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -375,28 +375,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -436,18 +436,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -536,14 +536,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -634,14 +634,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -732,14 +732,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -838,15 +838,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -939,14 +939,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1016,7 +1016,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1079,13 +1081,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1166,13 +1168,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1253,13 +1255,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1341,7 +1343,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1389,12 +1393,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1459,12 +1463,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1537,20 +1541,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1562,74 +1566,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1684,48 +1688,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1853,7 +1857,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi index 7cbc5e56..e4e1af74 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -48,13 +48,13 @@ module Orb sig do params( - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, - effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + price_id: String, + quantity: Float, + allow_invoice_credit_or_void: T.nilable(T::Boolean), + change_option: Symbol, + effective_date: T.nilable(Date), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ) .returns(T.attached_class) end def self.new( diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 4780265f..c4eed622 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -258,38 +258,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -373,28 +373,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -434,18 +434,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -534,14 +534,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -632,14 +632,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -730,14 +730,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -836,15 +836,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -937,14 +937,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1014,7 +1014,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1077,13 +1079,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1164,13 +1166,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1251,13 +1253,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1339,7 +1341,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1387,12 +1391,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1457,12 +1461,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1535,20 +1539,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1560,74 +1564,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1682,48 +1686,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1851,7 +1855,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 7e9b6af1..2a42dee9 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -51,13 +51,13 @@ module Orb sig do params( - auto_collection: T.nilable(T::Boolean), - default_invoice_memo: T.nilable(String), - invoicing_threshold: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + auto_collection: T.nilable(T::Boolean), + default_invoice_memo: T.nilable(String), + invoicing_threshold: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ) .returns(T.attached_class) end def self.new( diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index 3241d73d..b64fa5b7 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -24,10 +24,10 @@ module Orb sig do params( - trial_end_date: T.any(Time, Symbol), - shift: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + trial_end_date: T.any(Time, Symbol), + shift: T::Boolean, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ) .returns(T.attached_class) end def self.new(trial_end_date:, shift: nil, request_options: {}) @@ -35,7 +35,11 @@ module Orb sig do override - .returns({trial_end_date: T.any(Time, Symbol), shift: T::Boolean, request_options: Orb::RequestOptions}) + .returns({ + trial_end_date: T.any(Time, Symbol), + shift: T::Boolean, + request_options: Orb::RequestOptions + }) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index e9baff09..02aa7e30 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -99,28 +99,28 @@ module Orb sig do returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) end def discount_intervals end sig do params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ] + _: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval ) + ] + ) .returns( T::Array[ T.any( @@ -258,38 +258,38 @@ module Orb sig do params( - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + ) .returns(T.attached_class) end def self.new( @@ -373,28 +373,28 @@ module Orb sig do returns( - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) end def adjustment end sig do params( - _: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) + _: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) + ) .returns( T.any( Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, @@ -434,18 +434,18 @@ module Orb sig do params( - id: String, - adjustment: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - ) + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + ) .returns(T.attached_class) end def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) @@ -534,14 +534,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float, - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float, + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -632,14 +632,14 @@ module Orb sig do params( - id: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -730,14 +730,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -836,15 +836,15 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -937,14 +937,14 @@ module Orb sig do params( - id: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - adjustment_type: Symbol - ) + id: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + adjustment_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1014,7 +1014,9 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) } + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end def self.new(day:, month: nil, year: nil) end @@ -1077,13 +1079,13 @@ module Orb sig do params( - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - discount_type: Symbol - ) + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1164,13 +1166,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1251,13 +1253,13 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float, - discount_type: Symbol - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float, + discount_type: Symbol + ) .returns(T.attached_class) end def self.new( @@ -1339,7 +1341,9 @@ module Orb def self.new(end_date:, price_id:, quantity:, start_date:) end - sig { override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) } + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end def to_hash end end @@ -1387,12 +1391,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) @@ -1457,12 +1461,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - ) + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) @@ -1535,20 +1539,20 @@ module Orb sig do returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - ) + T.nilable( + T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - ) + _: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] ) + ) .returns( T.nilable( T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] @@ -1560,74 +1564,74 @@ module Orb sig do returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) end def price end sig do params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) + _: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice ) + ) .returns( T.any( Orb::Models::Price::UnitPrice, @@ -1682,48 +1686,48 @@ module Orb sig do params( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - ), - price: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - ) + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + ), + price: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + ) .returns(T.attached_class) end def self.new( @@ -1851,7 +1855,9 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) } + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end def self.new(coupon_id:, end_date:, start_date:) end diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 9a6b823b..06976204 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -61,10 +61,10 @@ module Orb sig do params( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol - ) + billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + view_mode: Symbol + ) .returns(T.attached_class) end def self.new(billable_metric:, usage:, view_mode:) @@ -134,7 +134,9 @@ module Orb def timeframe_start=(_) end - sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) } + sig do + params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + end def self.new(quantity:, timeframe_end:, timeframe_start:) end @@ -180,9 +182,9 @@ module Orb sig do params( - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) - ) + data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) + ) .returns(T.attached_class) end def self.new(data:, pagination_metadata: nil) @@ -244,11 +246,11 @@ module Orb sig do params( - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol - ) + billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + view_mode: Symbol + ) .returns(T.attached_class) end def self.new(billable_metric:, metric_group:, usage:, view_mode:) @@ -345,7 +347,9 @@ module Orb def timeframe_start=(_) end - sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) } + sig do + params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + end def self.new(quantity:, timeframe_end:, timeframe_start:) end diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index 28af7625..c6826ab9 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -6,7 +6,14 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).returns(T.attached_class) } + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index bfa75981..8e5efc16 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -45,12 +45,12 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - reason: T.nilable(String), - trial_amount_discount: T.nilable(String), - trial_percentage_discount: T.nilable(Float) - ) + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + reason: T.nilable(String), + trial_amount_discount: T.nilable(String), + trial_percentage_discount: T.nilable(Float) + ) .returns(T.attached_class) end def self.new( diff --git a/rbi/lib/orb/models/usage_discount.rbi b/rbi/lib/orb/models/usage_discount.rbi index 11221a6f..347e6216 100644 --- a/rbi/lib/orb/models/usage_discount.rbi +++ b/rbi/lib/orb/models/usage_discount.rbi @@ -37,11 +37,11 @@ module Orb sig do params( - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - usage_discount: Float, - reason: T.nilable(String) - ) + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + usage_discount: Float, + reason: T.nilable(String) + ) .returns(T.attached_class) end def self.new(applies_to_price_ids:, discount_type:, usage_discount:, reason: nil) @@ -50,7 +50,12 @@ module Orb sig do override .returns( - {applies_to_price_ids: T::Array[String], discount_type: Symbol, usage_discount: Float, reason: T.nilable(String)} + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + usage_discount: Float, + reason: T.nilable(String) + } ) end def to_hash diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index f8ac5455..239fb985 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.24" + VERSION = "0.1.0-alpha.25" end diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index faf6d9db..5c3b6532 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.23" + VERSION: "0.1.0-alpha.24" end diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index ae85ded4..48e8d9c3 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -58,11 +58,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Alert diff --git a/test/orb/resources/coupons/subscriptions_test.rb b/test/orb/resources/coupons/subscriptions_test.rb index 34580bb3..3a57292a 100644 --- a/test/orb/resources/coupons/subscriptions_test.rb +++ b/test/orb/resources/coupons/subscriptions_test.rb @@ -10,11 +10,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Subscription diff --git a/test/orb/resources/coupons_test.rb b/test/orb/resources/coupons_test.rb index 38b54330..c45addaa 100644 --- a/test/orb/resources/coupons_test.rb +++ b/test/orb/resources/coupons_test.rb @@ -33,11 +33,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Coupon diff --git a/test/orb/resources/credit_notes_test.rb b/test/orb/resources/credit_notes_test.rb index 9bb496c3..00a9009f 100644 --- a/test/orb/resources/credit_notes_test.rb +++ b/test/orb/resources/credit_notes_test.rb @@ -46,11 +46,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::CreditNote diff --git a/test/orb/resources/customers/balance_transactions_test.rb b/test/orb/resources/customers/balance_transactions_test.rb index 41220b71..d46bf030 100644 --- a/test/orb/resources/customers/balance_transactions_test.rb +++ b/test/orb/resources/customers/balance_transactions_test.rb @@ -33,11 +33,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::BalanceTransactionListResponse diff --git a/test/orb/resources/customers/credits/ledger_test.rb b/test/orb/resources/customers/credits/ledger_test.rb index bf2de658..ce46f445 100644 --- a/test/orb/resources/customers/credits/ledger_test.rb +++ b/test/orb/resources/customers/credits/ledger_test.rb @@ -10,11 +10,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::Credits::LedgerListResponse @@ -447,11 +442,6 @@ def test_list_by_external_id response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::Credits::LedgerListByExternalIDResponse diff --git a/test/orb/resources/customers/credits/top_ups_test.rb b/test/orb/resources/customers/credits/top_ups_test.rb index 40ee33fd..d53d6512 100644 --- a/test/orb/resources/customers/credits/top_ups_test.rb +++ b/test/orb/resources/customers/credits/top_ups_test.rb @@ -38,11 +38,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::Credits::TopUpListResponse @@ -116,11 +111,6 @@ def test_list_by_external_id response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::Credits::TopUpListByExternalIDResponse diff --git a/test/orb/resources/customers/credits_test.rb b/test/orb/resources/customers/credits_test.rb index 2d7b5e58..60d0d4c5 100644 --- a/test/orb/resources/customers/credits_test.rb +++ b/test/orb/resources/customers/credits_test.rb @@ -10,11 +10,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::CreditListResponse @@ -40,11 +35,6 @@ def test_list_by_external_id response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customers::CreditListByExternalIDResponse diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index 31dc5b0c..fb7e1fc0 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -80,11 +80,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Customer diff --git a/test/orb/resources/dimensional_price_groups_test.rb b/test/orb/resources/dimensional_price_groups_test.rb index 36f4e569..80c43956 100644 --- a/test/orb/resources/dimensional_price_groups_test.rb +++ b/test/orb/resources/dimensional_price_groups_test.rb @@ -52,11 +52,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::DimensionalPriceGroup diff --git a/test/orb/resources/events/backfills_test.rb b/test/orb/resources/events/backfills_test.rb index f4f37dbb..e8756863 100644 --- a/test/orb/resources/events/backfills_test.rb +++ b/test/orb/resources/events/backfills_test.rb @@ -37,11 +37,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Events::BackfillListResponse diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index c9b8c6b4..8851f159 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -133,11 +133,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Invoice diff --git a/test/orb/resources/items_test.rb b/test/orb/resources/items_test.rb index c1d9f263..19bdf7a6 100644 --- a/test/orb/resources/items_test.rb +++ b/test/orb/resources/items_test.rb @@ -44,11 +44,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Item diff --git a/test/orb/resources/metrics_test.rb b/test/orb/resources/metrics_test.rb index 0d9e8664..541db249 100644 --- a/test/orb/resources/metrics_test.rb +++ b/test/orb/resources/metrics_test.rb @@ -53,11 +53,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::BillableMetric diff --git a/test/orb/resources/plans_test.rb b/test/orb/resources/plans_test.rb index b5a5a3e7..2a5d2310 100644 --- a/test/orb/resources/plans_test.rb +++ b/test/orb/resources/plans_test.rb @@ -96,11 +96,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Plan diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 36976f80..4738eb1f 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -1565,11 +1565,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Price diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index 4741e631..e634e8e1 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -86,11 +86,6 @@ def test_list response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::Subscription @@ -224,11 +219,6 @@ def test_fetch_schedule response => Orb::Page end - page = response.next_page - assert_pattern do - page => Orb::Page - end - row = response.to_enum.first assert_pattern do row => Orb::Models::SubscriptionFetchScheduleResponse