diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 46b9b6b2..3b005e52 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.9" + ".": "0.1.0-alpha.10" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index 0c368342..fd275e74 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,196 +1,206 @@ -# Just to be safe, ensure nobody is mutating our internal strings. -Style/FrozenStringLiteralComment: - EnforcedStyle: always - Exclude: - - '**/*.rbi' +--- -# And/or have confusing precedence, avoid them. -Style/AndOr: - EnforcedStyle: always +# Explicitly disable pending cops for now. This is the default behaviour but +# this avoids a large warning every time we run it. +# Stop RuboCop nagging about rubocop-rake. +# Ensure that RuboCop validates according to the lowest version of Ruby that we support. +AllCops: + Exclude: + - "bin/*" + NewCops: enable + SuggestExtensions: false + TargetRubyVersion: 3.0.0 -# Prefer double quotes so that interpolation can be easily added. -Style/StringLiterals: - EnforcedStyle: double_quotes +# Don't require this extra line break, it can be excessive. +Layout/EmptyLineAfterGuardClause: + Enabled: false -# Most common style in Ruby. -Style/RegexpLiteral: - EnforcedStyle: slashes +# Don't leave complex assignment values hanging off to the right. +Layout/EndAlignment: + EnforcedStyleAlignWith: variable -# Prefer explicit symbols for clarity; you can search for `:the_symbol`. -Style/SymbolArray: - EnforcedStyle: brackets +Layout/FirstArrayElementLineBreak: + Enabled: true -# Prefer consistency in method calling syntax -Style/MethodCallWithArgsParentheses: +Layout/FirstHashElementLineBreak: Enabled: true - Exclude: - - '**/*.gemspec' - AllowedMethods: - - raise -# Nothing wrong with inline private methods -Style/AccessModifierDeclarations: +Layout/FirstMethodArgumentLineBreak: + Enabled: true + +Layout/FirstMethodParameterLineBreak: + Enabled: true + +# Set a reasonable line length; rely on other cops to correct long lines. +Layout/LineLength: + AllowedPatterns: + - "^\\s*#.*$" + - ^require(_relative)? + - "Orb::(Models|Resources)::" + Max: 110 + +Layout/MultilineArrayLineBreaks: + Enabled: true + +# Start the assignment on the same line variable is mentioned. +Layout/MultilineAssignmentLayout: + EnforcedStyle: same_line + +Layout/MultilineHashKeyLineBreaks: + Enabled: true + +Layout/MultilineMethodArgumentLineBreaks: + Enabled: true + +Layout/MultilineMethodParameterLineBreaks: + Enabled: true + +# Prefer compact hash literals. +Layout/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space + +Lint/ConstantDefinitionInBlock: + Exclude: + - "lib/**/*" + +Lint/MissingSuper: + Exclude: + - "**/*.rbi" + +Metrics/AbcSize: Enabled: false -# Nothing wrong with clear if statements. -Style/IfUnlessModifier: +Metrics/ClassLength: Enabled: false -# Unless is not necessarily clearer. -Style/NegatedIf: +Metrics/CyclomaticComplexity: Enabled: false -# We use these sparingly, where we anticipate future branches for the -# inner conditional. -Style/SoleNestedConditional: +Metrics/MethodLength: Enabled: false -# Allow explicit empty elses, for clarity. -Style/EmptyElse: +Metrics/ParameterLists: Enabled: false -# Allow explicit ifs, especially for imperative use. -Style/SafeNavigation: +Metrics/PerceivedComplexity: Enabled: false -# We commonly use ENV['KEY'], it's OK. -Style/FetchEnvVar: +Naming/MethodParameterName: + Exclude: + - "**/*.rbi" + +Naming/VariableNumber: + Enabled: false + +# Nothing wrong with inline private methods. +Style/AccessModifierDeclarations: Enabled: false +Style/AccessorGrouping: + Exclude: + - "**/*.rbi" + # Behaviour of alias_method is more predictable. Style/Alias: EnforcedStyle: prefer_alias_method +# And/or have confusing precedence, avoid them. +Style/AndOr: + EnforcedStyle: always + +Style/BisectedAttrAccessor: + Exclude: + - "**/*.rbi" + +# Fairly useful in tests for pattern matching. +Style/CaseEquality: + Exclude: + - "test/**/*" + # We prefer nested modules in lib/, but are currently using compact style for tests. Style/ClassAndModuleChildren: - Exclude: - - test/**/* + Exclude: + - "test/**/*" -# Perfectly fine -Style/MultipleComparison: +# We should go back and add these docs, but ignore for now. +Style/Documentation: Enabled: false -# Rubocop is pretty bad about mangling single line lambdas -Style/Lambda: +# Allow explicit empty elses, for clarity. +Style/EmptyElse: Enabled: false -# Not all parameters should be named -Style/NumberedParameters: +Style/EmptyMethod: + Exclude: + - "**/*.rbi" + +# We commonly use ENV['KEY'], it's OK. +Style/FetchEnvVar: Enabled: false -# Fairly useful in tests for pattern matching -Style/CaseEquality: - Exclude: - - test/**/* +# Just to be safe, ensure nobody is mutating our internal strings. +Style/FrozenStringLiteralComment: + EnforcedStyle: always + Exclude: + - "**/*.rbi" -# Reasonable to use brackets for errors with long messages. -Style/RaiseArgs: +# Nothing wrong with clear if statements. +Style/IfUnlessModifier: Enabled: false -# Reasonable for a library to define dynamic type-aliases depending on sorbet-runtime availability -Lint/ConstantDefinitionInBlock: - Exclude: - - 'lib/**/*' +# Rubocop is pretty bad about mangling single line lambdas. +Style/Lambda: + Enabled: false -# Sorbet files should be excluded from some style considerations -Style/AccessorGrouping: - Exclude: - - '**/*.rbi' -Style/EmptyMethod: - Exclude: - - '**/*.rbi' -Style/RedundantInitialize: - Exclude: - - '**/*.rbi' -Lint/MissingSuper: - Exclude: - - '**/*.rbi' -Style/BisectedAttrAccessor: - Exclude: - - '**/*.rbi' -Naming/MethodParameterName: - Exclude: - - '**/*.rbi' -Style/MutableConstant: - Exclude: - - '**/*.rbi' +# Prefer consistency in method calling syntax. +Style/MethodCallWithArgsParentheses: + AllowedMethods: + - raise + Enabled: true + Exclude: + - "**/*.gemspec" -# Literally nothing wrong with `symbol_1` -Naming/VariableNumber: +# Perfectly fine. +Style/MultipleComparison: Enabled: false -# Set a reasonable line length; rely on other cops to correct long lines. -Layout/LineLength: - Max: 110 - AllowedPatterns: - - '^(\s*#)' # Comments for YARD docs: @param and similar. - - '= Orb::Resources::\S+\.new\(client: (self|client)\)$' # Instantiating resources. - - '^\s*(-> { )?Orb::Models::[a-zA-Z0-9:]+( })?$' # Line is entirely a reference to a fully-qualified Model. +Style/MutableConstant: + Exclude: + - "**/*.rbi" -# Start the assignment on the same line variable is mentioned. -Layout/MultilineAssignmentLayout: - EnforcedStyle: same_line +# Not all parameters should be named. +Style/NumberedParameters: + Enabled: false -# Don't leave complex assignment values hanging off to the right. -Layout/EndAlignment: - EnforcedStyleAlignWith: variable +# Reasonable to use brackets for errors with long messages. +Style/RaiseArgs: + Enabled: false -# Don't require this extra line break, it can be excessive. -Layout/EmptyLineAfterGuardClause: +# Be explicit about `RuntimeError`s. +Style/RedundantException: Enabled: false -# For arrays, hashes, method arguments, and method params, if they are broken onto multiple lines: -# * Should have one element per line. -# * Should have a line break before the first element. -Layout/MultilineArrayLineBreaks: - Enabled: true -Layout/FirstArrayElementLineBreak: - Enabled: true -Layout/MultilineHashKeyLineBreaks: - Enabled: true -Layout/FirstHashElementLineBreak: - Enabled: true -Layout/MultilineMethodArgumentLineBreaks: - Enabled: true -Layout/FirstMethodArgumentLineBreak: - Enabled: true -Layout/MultilineMethodParameterLineBreaks: - Enabled: true -Layout/FirstMethodParameterLineBreak: - Enabled: true +Style/RedundantInitialize: + Exclude: + - "**/*.rbi" -# Prefer compact hash literals. -Layout/SpaceInsideHashLiteralBraces: - EnforcedStyle: no_space +# Prefer slashes for regex literals. +Style/RegexpLiteral: + EnforcedStyle: slashes -# These cops are not as applicable to generated code. -Metrics/ParameterLists: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ClassLength: +# Allow explicit ifs, especially for imperative use. +Style/SafeNavigation: Enabled: false -# These cops are too aggressive for us or now, but we may want to address them -# later. -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Metrics/AbcSize: +# We use these sparingly, where we anticipate future branches for the +# inner conditional. +Style/SoleNestedConditional: Enabled: false -# We should go back and add these docs, but ignore for now. -Style/Documentation: - Enabled: false +# Prefer double quotes so that interpolation can be easily added. +Style/StringLiterals: + EnforcedStyle: double_quotes -# Explicitly disable pending cops for now. This is the default behaviour but -# this avoids a large warning every time we run it. -# Stop RuboCop nagging about rubocop-rake. -# Ensure that RuboCop validates according to the lowest version of Ruby that we support. -AllCops: - Exclude: - - bin/* - NewCops: enable - SuggestExtensions: false - TargetRubyVersion: 3.0.0 +# Prefer explicit symbols for clarity; you can search for `:the_symbol`. +Style/SymbolArray: + EnforcedStyle: brackets diff --git a/.stats.yml b/.stats.yml index e5439953..3599ce86 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-4dede72b827939939b5386cda07c3bc1fa2eea79901819792c1820e8531718d6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-7791652a23b1ed216bba0b8fa77798252f78b0525fbd77cc29ee92c6d5739c5a.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index d6ac9060..768c17f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.1.0-alpha.10 (2025-02-20) + +Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.9...v0.1.0-alpha.10) + +### Features + +* **api:** api update ([#51](https://github.com/orbcorp/orb-ruby/issues/51)) ([19b3ac2](https://github.com/orbcorp/orb-ruby/commit/19b3ac2be442d35c0ce83f284f1b8783b237eb32)) + + +### Chores + +* bump lockfile ([#49](https://github.com/orbcorp/orb-ruby/issues/49)) ([3a0849b](https://github.com/orbcorp/orb-ruby/commit/3a0849b4d7b9dfa147a020cba70d19199dcd3fab)) +* clean up client tests ([#47](https://github.com/orbcorp/orb-ruby/issues/47)) ([809ff79](https://github.com/orbcorp/orb-ruby/commit/809ff79703568188c692a227f3dfff77b9529b94)) +* **internal:** formatting ([#48](https://github.com/orbcorp/orb-ruby/issues/48)) ([ad2f4de](https://github.com/orbcorp/orb-ruby/commit/ad2f4de8fd380b7aa46fa9d2d516ab32b3b3b1dc)) +* **internal:** version bump ([#45](https://github.com/orbcorp/orb-ruby/issues/45)) ([4206454](https://github.com/orbcorp/orb-ruby/commit/4206454c3173411199eb6167fe53fedc44e58ce5)) +* rename internal type aliases ([#50](https://github.com/orbcorp/orb-ruby/issues/50)) ([ffe0640](https://github.com/orbcorp/orb-ruby/commit/ffe0640993d3b9784ec3e97250ec6c02e7899522)) + ## 0.1.0-alpha.9 (2025-02-18) Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.8...v0.1.0-alpha.9) diff --git a/Gemfile.lock b/Gemfile.lock index 1823b0ac..11cdb76f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.9) + orb (0.1.0.pre.alpha.10) connection_pool GEM @@ -36,14 +36,15 @@ GEM concurrent-ruby (1.3.5) connection_pool (2.5.0) csv (3.3.2) - diff-lcs (1.6.0) drb (2.2.1) + erubi (1.13.1) ffi (1.17.1) fileutils (1.7.3) i18n (1.14.7) concurrent-ruby (~> 1.0) - json (2.7.2) - language_server-protocol (3.17.0.3) + json (2.10.1) + language_server-protocol (3.17.0.4) + lint_roller (1.1.0) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -55,35 +56,35 @@ GEM minitest (> 5.3) netrc (0.11.0) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.7.1) ast (~> 2.4.1) racc prettier_print (1.2.1) + prism (1.3.0) racc (1.8.1) rainbow (3.1.1) - rake (13.1.0) + rake (13.2.1) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.0.17) - ast - parser (>= 3.0.0) + rbi (0.2.4) + prism (~> 1.0) sorbet-runtime (>= 0.5.9204) - unparser (>= 0.5.6) rbs (3.8.1) logger - regexp_parser (2.9.2) - rubocop (1.66.1) + regexp_parser (2.10.0) + rubocop (1.72.2) json (~> 2.3) - language_server-protocol (>= 3.17.0) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.4, < 3.0) - rubocop-ast (>= 1.32.2, < 2.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.2) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.38.0) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) securerandom (0.4.1) @@ -94,9 +95,11 @@ GEM sorbet-static-and-runtime (0.5.11834) sorbet (= 0.5.11834) sorbet-runtime (= 0.5.11834) - spoom (1.1.16) - sorbet (>= 0.5.10187) - sorbet-runtime (>= 0.5.9204) + spoom (1.5.3) + erubi (>= 1.10.0) + prism (>= 0.28.0) + rbi (>= 0.2.3) + sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) steep (1.9.4) activesupport (>= 5.1) @@ -117,13 +120,14 @@ GEM strscan (3.1.2) syntax_tree (6.2.0) prettier_print (>= 1.2.0) - tapioca (0.11.2) - bundler (>= 1.17.3) + tapioca (0.16.10) + benchmark + bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) - rbi (~> 0.0.0, >= 0.0.16) - sorbet-static-and-runtime (>= 0.5.10187) - spoom (~> 1.1.0, >= 1.1.11) + rbi (~> 0.2) + sorbet-static-and-runtime (>= 0.5.11087) + spoom (>= 1.2.0) thor (>= 1.2.0) yard-sorbet terminal-table (3.0.2) @@ -131,10 +135,7 @@ GEM thor (1.3.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.5.0) - unparser (0.6.15) - diff-lcs (~> 1.3) - parser (>= 3.3.0) + unicode-display_width (2.6.0) uri (1.0.2) webrick (1.9.1) yard (0.9.37) @@ -162,4 +163,4 @@ DEPENDENCIES yard BUNDLED WITH - 2.2.3 + 2.3.3 diff --git a/README.md b/README.md index 87cd9cf4..2f5c5740 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Orb Ruby API library -The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0+ +The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0.0+ application. ## Documentation diff --git a/Rakefile b/Rakefile index f6f4ad68..7fbac7a5 100644 --- a/Rakefile +++ b/Rakefile @@ -18,13 +18,13 @@ Minitest::TestTask.create do |t| end RuboCop::RakeTask.new(:rubocop) do |t| - t.options = %w[--fail-level E --autocorrect] + t.options = %w[--fail-level E] if ENV.key?("CI") t.options += %w[--format github] end end -multitask(:format_rb) do +multitask(:ruboformat) do find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] sh("#{find.shelljoin} | #{fmt.shelljoin}") @@ -63,7 +63,7 @@ multitask(:syntax_tree) do sh("#{find.shelljoin} | #{pst.shelljoin}") end -multitask(format: [:format_rb, :syntax_tree]) +multitask(format: [:ruboformat, :syntax_tree]) multitask(:steep) do sh(*%w[steep check]) diff --git a/lib/orb/errors.rb b/lib/orb/errors.rb index d7cd0799..d7a648b4 100644 --- a/lib/orb/errors.rb +++ b/lib/orb/errors.rb @@ -129,7 +129,7 @@ def self.for(url:, status:, body:, request:, response:) Orb::ResourceTooLarge.new(**kwargs) in [429, Orb::TooManyRequests::TYPE] Orb::TooManyRequests.new(**kwargs) - in [500, Orb::OrbInternalServerError::TYPE] + in [(500..), Orb::OrbInternalServerError::TYPE] Orb::OrbInternalServerError.new(**kwargs) in [400, _] Orb::BadRequestError.new(**kwargs) @@ -210,50 +210,50 @@ class InternalServerError < Orb::APIStatusError HTTP_STATUS = (500..) end - class ConstraintViolation < Orb::APIStatusError - HTTP_STATUS = 400 + class ConstraintViolation < Orb::BadRequestError + HTTP_STATUS = Orb::BadRequestError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#400-constraint-violation" end - class DuplicateResourceCreation < Orb::APIStatusError - HTTP_STATUS = 400 + class DuplicateResourceCreation < Orb::BadRequestError + HTTP_STATUS = Orb::BadRequestError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation" end - class FeatureNotAvailable < Orb::APIStatusError - HTTP_STATUS = 400 + class FeatureNotAvailable < Orb::BadRequestError + HTTP_STATUS = Orb::BadRequestError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#404-feature-not-available" end - class RequestValidationError < Orb::APIStatusError - HTTP_STATUS = 400 + class RequestValidationError < Orb::BadRequestError + HTTP_STATUS = Orb::BadRequestError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#400-request-validation-errors" end - class OrbAuthenticationError < Orb::APIStatusError - HTTP_STATUS = 401 + class OrbAuthenticationError < Orb::AuthenticationError + HTTP_STATUS = Orb::AuthenticationError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#401-authentication-error" end - class ResourceNotFound < Orb::APIStatusError - HTTP_STATUS = 404 + class ResourceNotFound < Orb::NotFoundError + HTTP_STATUS = Orb::NotFoundError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#404-resource-not-found" end - class URLNotFound < Orb::APIStatusError - HTTP_STATUS = 404 + class URLNotFound < Orb::NotFoundError + HTTP_STATUS = Orb::NotFoundError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#404-url-not-found" end - class ResourceConflict < Orb::APIStatusError - HTTP_STATUS = 409 + class ResourceConflict < Orb::ConflictError + HTTP_STATUS = Orb::ConflictError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#409-resource-conflict" end @@ -270,14 +270,14 @@ class ResourceTooLarge < Orb::APIStatusError TYPE = "https://docs.withorb.com/reference/error-responses#413-resource-too-large" end - class TooManyRequests < Orb::APIStatusError - HTTP_STATUS = 429 + class TooManyRequests < Orb::RateLimitError + HTTP_STATUS = Orb::RateLimitError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#429-too-many-requests" end - class OrbInternalServerError < Orb::APIStatusError - HTTP_STATUS = 500 + class OrbInternalServerError < Orb::InternalServerError + HTTP_STATUS = Orb::InternalServerError::HTTP_STATUS TYPE = "https://docs.withorb.com/reference/error-responses#500-internal-server-error" end diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index 65f1c46f..e5c1b78c 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -82,9 +82,19 @@ class Coupon < Orb::BaseModel # @example # ```ruby # case discount - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, reason: String} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # reason: String + # } # # Orb::Models::PercentageDiscount ... - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, reason: String} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # reason: String + # } # # Orb::Models::AmountDiscount ... # end # ``` diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index b220e68d..6f8f44c4 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -852,9 +852,7 @@ class AccountingProvider < Orb::BaseModel # # @return [Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] required :provider_type, - enum: -> { - Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType - } + enum: -> { Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType } # @!parse # # @param external_provider_id [String, nil] diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index 1f69a508..01a334e8 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -106,11 +106,7 @@ class CustomerCreateParams < Orb::BaseModel # @!attribute tax_configuration # # @return [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration, nil] - optional :tax_configuration, - union: -> { - Orb::Models::CustomerCreateParams::TaxConfiguration - }, - nil?: true + optional :tax_configuration, union: -> { Orb::Models::CustomerCreateParams::TaxConfiguration }, nil?: true # @!attribute tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -288,9 +284,7 @@ class AccountingSyncConfiguration < Orb::BaseModel # # @return [Array, nil] optional :accounting_providers, - -> { - Orb::ArrayOf[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider] - }, + -> { Orb::ArrayOf[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider] }, nil?: true # @!attribute excluded @@ -522,10 +516,7 @@ class ShippingAddress < Orb::BaseModel class TaxConfiguration < Orb::Union discriminator :tax_provider - variant :avalara, - -> { - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration - } + variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration } variant :taxjar, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration } diff --git a/lib/orb/models/customer_update_by_external_id_params.rb b/lib/orb/models/customer_update_by_external_id_params.rb index f6949924..b017bfe4 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -283,9 +283,7 @@ class AccountingSyncConfiguration < Orb::BaseModel # # @return [Array, nil] optional :accounting_providers, - -> { - Orb::ArrayOf[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] - }, + -> { Orb::ArrayOf[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] }, nil?: true # @!attribute excluded diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index c41cf3b2..a86df8d3 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -107,11 +107,7 @@ class CustomerUpdateParams < Orb::BaseModel # @!attribute tax_configuration # # @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration, nil] - optional :tax_configuration, - union: -> { - Orb::Models::CustomerUpdateParams::TaxConfiguration - }, - nil?: true + optional :tax_configuration, union: -> { Orb::Models::CustomerUpdateParams::TaxConfiguration }, nil?: true # @!attribute tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -279,9 +275,7 @@ class AccountingSyncConfiguration < Orb::BaseModel # # @return [Array, nil] optional :accounting_providers, - -> { - Orb::ArrayOf[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider] - }, + -> { Orb::ArrayOf[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider] }, nil?: true # @!attribute excluded @@ -517,10 +511,7 @@ class ShippingAddress < Orb::BaseModel class TaxConfiguration < Orb::Union discriminator :tax_provider - variant :avalara, - -> { - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration - } + variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration } variant :taxjar, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration } diff --git a/lib/orb/models/customers/balance_transaction_create_response.rb b/lib/orb/models/customers/balance_transaction_create_response.rb index f024521f..0f5e1b5b 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -61,11 +61,7 @@ class BalanceTransactionCreateResponse < Orb::BaseModel # @!attribute invoice # # @return [Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, nil] - required :invoice, - -> { - Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice - }, - nil?: true + required :invoice, -> { Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice }, nil?: true # @!attribute starting_balance # The original value of the customer's balance prior to the transaction, in the diff --git a/lib/orb/models/customers/cost_list_by_external_id_params.rb b/lib/orb/models/customers/cost_list_by_external_id_params.rb index 7f4a7b48..2bf3e127 100644 --- a/lib/orb/models/customers/cost_list_by_external_id_params.rb +++ b/lib/orb/models/customers/cost_list_by_external_id_params.rb @@ -33,11 +33,7 @@ class CostListByExternalIDParams < Orb::BaseModel # behavior. # # @return [Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode, nil] - optional :view_mode, - enum: -> { - Orb::Models::Customers::CostListByExternalIDParams::ViewMode - }, - nil?: true + optional :view_mode, enum: -> { Orb::Models::Customers::CostListByExternalIDParams::ViewMode }, nil?: true # @!parse # # @param currency [String, nil] diff --git a/lib/orb/models/customers/cost_list_by_external_id_response.rb b/lib/orb/models/customers/cost_list_by_external_id_response.rb index ec2d8b60..7e435f6f 100644 --- a/lib/orb/models/customers/cost_list_by_external_id_response.rb +++ b/lib/orb/models/customers/cost_list_by_external_id_response.rb @@ -37,9 +37,7 @@ class Data < Orb::BaseModel # # @return [Array] required :per_price_costs, - -> { - Orb::ArrayOf[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost] - } + -> { Orb::ArrayOf[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost] } # @!attribute subtotal # Total costs for the timeframe, excluding any minimums and discounts. diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb index 96cf8200..a9a86711 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb @@ -20,9 +20,7 @@ class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] required :entry_type, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType } # @!attribute currency # The currency or custom pricing unit to use for this ledger entry. If this is a @@ -60,9 +58,7 @@ class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # # @return [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] optional :invoice_settings, - -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings - }, + -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings }, nil?: true # @!attribute metadata @@ -99,9 +95,7 @@ class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] optional :void_reason, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason - }, + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason }, nil?: true # @!parse diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb index 28ac93cb..8aabc51c 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb @@ -130,9 +130,7 @@ class IncrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -337,9 +335,7 @@ class DecrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -565,9 +561,7 @@ class ExpirationChangeLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -779,9 +773,7 @@ class CreditBlockExpiryLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -986,9 +978,7 @@ class VoidLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1207,9 +1197,7 @@ class VoidInitiatedLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1435,9 +1423,7 @@ class AmendmentLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus } # @!attribute entry_type # diff --git a/lib/orb/models/customers/credits/ledger_create_entry_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_params.rb index fba8ebff..283188f0 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -19,10 +19,7 @@ class LedgerCreateEntryParams < Orb::BaseModel # @!attribute entry_type # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType] - required :entry_type, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType - } + required :entry_type, enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType } # @!attribute currency # The currency or custom pricing unit to use for this ledger entry. If this is a diff --git a/lib/orb/models/customers/credits/ledger_create_entry_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_response.rb index 188e437b..a6bfa80e 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -129,9 +129,7 @@ class IncrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -336,9 +334,7 @@ class DecrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -564,9 +560,7 @@ class ExpirationChangeLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -778,9 +772,7 @@ class CreditBlockExpiryLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -985,9 +977,7 @@ class VoidLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1206,9 +1196,7 @@ class VoidInitiatedLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1434,9 +1422,7 @@ class AmendmentLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus } # @!attribute entry_type # diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb index f80675bd..b28efb2d 100644 --- a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb @@ -63,10 +63,7 @@ class LedgerListByExternalIDResponse < Orb::Union variant :credit_block_expiry, -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry } - variant :void, - -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry - } + variant :void, -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry } variant :void_initiated, -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry } @@ -132,9 +129,7 @@ class IncrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -339,9 +334,7 @@ class DecrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -567,9 +560,7 @@ class ExpirationChangeLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -781,9 +772,7 @@ class CreditBlockExpiryLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -988,9 +977,7 @@ class VoidLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1209,9 +1196,7 @@ class VoidInitiatedLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1437,9 +1422,7 @@ class AmendmentLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus } # @!attribute entry_type # diff --git a/lib/orb/models/customers/credits/ledger_list_response.rb b/lib/orb/models/customers/credits/ledger_list_response.rb index 3a6b14d5..f799fa7c 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -126,9 +126,7 @@ class IncrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -333,9 +331,7 @@ class DecrementLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -561,9 +557,7 @@ class ExpirationChangeLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -775,9 +769,7 @@ class CreditBlockExpiryLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -965,10 +957,7 @@ class VoidLedgerEntry < Orb::BaseModel # @!attribute customer # # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer] - required :customer, - -> { - Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer - } + required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer } # @!attribute description # @@ -984,9 +973,7 @@ class VoidLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1205,9 +1192,7 @@ class VoidInitiatedLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus } # @!attribute entry_type # @@ -1433,9 +1418,7 @@ class AmendmentLedgerEntry < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus] required :entry_status, - enum: -> { - Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus - } + enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus } # @!attribute entry_type # diff --git a/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb index bd112f79..332badd0 100644 --- a/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb @@ -54,9 +54,7 @@ class TopUpCreateByExternalIDParams < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] optional :expires_after_unit, - enum: -> { - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit - }, + enum: -> { Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit }, nil?: true # @!parse diff --git a/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb b/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb index 41a341fa..4d5468a8 100644 --- a/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb @@ -66,9 +66,7 @@ class TopUpCreateByExternalIDResponse < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit, nil] optional :expires_after_unit, - enum: -> { - Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit - }, + enum: -> { Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit }, nil?: true # @!parse diff --git a/lib/orb/models/customers/credits/top_up_create_params.rb b/lib/orb/models/customers/credits/top_up_create_params.rb index 18bd2a95..4ed9d9ed 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -26,10 +26,7 @@ class TopUpCreateParams < Orb::BaseModel # Settings for invoices generated by triggered top-ups. # # @return [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings] - required :invoice_settings, - -> { - Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings - } + required :invoice_settings, -> { Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings } # @!attribute per_unit_cost_basis # How much, in the customer's currency, to charge for each unit. diff --git a/lib/orb/models/customers/credits/top_up_create_response.rb b/lib/orb/models/customers/credits/top_up_create_response.rb index 660a6a66..43b8b8d6 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -38,10 +38,7 @@ class TopUpCreateResponse < Orb::BaseModel # Settings for invoices generated by triggered top-ups. # # @return [Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings] - required :invoice_settings, - -> { - Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings - } + required :invoice_settings, -> { Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings } # @!attribute per_unit_cost_basis # How much, in the customer's currency, to charge for each unit. diff --git a/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb b/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb index 1c250982..c9db9605 100644 --- a/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb @@ -66,9 +66,7 @@ class TopUpListByExternalIDResponse < Orb::BaseModel # # @return [Symbol, Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit, nil] optional :expires_after_unit, - enum: -> { - Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit - }, + enum: -> { Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit }, nil?: true # @!parse diff --git a/lib/orb/models/customers/credits/top_up_list_response.rb b/lib/orb/models/customers/credits/top_up_list_response.rb index f43cb91c..3a89cc58 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -38,10 +38,7 @@ class TopUpListResponse < Orb::BaseModel # Settings for invoices generated by triggered top-ups. # # @return [Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings] - required :invoice_settings, - -> { - Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings - } + required :invoice_settings, -> { Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings } # @!attribute per_unit_cost_basis # How much, in the customer's currency, to charge for each unit. diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index 9b67b575..eea68788 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -7,13 +7,33 @@ module Models # @example # ```ruby # case discount - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, reason: String} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # reason: String + # } # # Orb::Models::PercentageDiscount ... - # in {discount_type: "trial", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, reason: String, trial_amount_discount: String} + # in { + # discount_type: "trial", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # reason: String, + # trial_amount_discount: String + # } # # Orb::Models::TrialDiscount ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, reason: String} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # reason: String + # } # # Orb::Models::Discount::UsageDiscount ... - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, reason: String} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # reason: String + # } # # Orb::Models::AmountDiscount ... # end # ``` diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index bcf5b958..52ce0591 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -1447,11 +1447,21 @@ class LineItem < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "usage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment ... @@ -1964,11 +1974,26 @@ class Minimum < Orb::BaseModel # @example # ```ruby # case sub_line_item - # in {type: "matrix", amount: String, grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig} + # in { + # type: "matrix", + # amount: String, + # grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + # matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig + # } # # Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem ... - # in {type: "tier", amount: String, grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, name: String} + # in { + # type: "tier", + # amount: String, + # grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, + # name: String + # } # # Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem ... - # in {type: "'null'", amount: String, grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, name: String} + # in { + # type: "'null'", + # amount: String, + # grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, + # name: String + # } # # Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem ... # end # ``` @@ -2137,10 +2162,7 @@ class TierSubLineItem < Orb::BaseModel # @!attribute tier_config # # @return [Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig] - required :tier_config, - -> { - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig - } + required :tier_config, -> { Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig } # @!attribute type # @@ -2433,11 +2455,7 @@ class PaymentAttempt < Orb::BaseModel # The payment provider that attempted to collect the payment. # # @return [Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider, nil] - required :payment_provider, - enum: -> { - Orb::Models::Invoice::PaymentAttempt::PaymentProvider - }, - nil?: true + required :payment_provider, enum: -> { Orb::Models::Invoice::PaymentAttempt::PaymentProvider }, nil?: true # @!attribute payment_provider_id # The ID of the payment attempt in the payment provider. diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 7df0f3b5..29304c16 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -295,10 +295,7 @@ class InvoiceFetchUpcomingResponse < Orb::BaseModel # A list of payment attempts associated with the invoice # # @return [Array] - required :payment_attempts, - -> { - Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] - } + required :payment_attempts, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] } # @!attribute payment_failed_at # If payment was attempted on this invoice but failed, this will be the time of @@ -325,11 +322,7 @@ class InvoiceFetchUpcomingResponse < Orb::BaseModel # @!attribute shipping_address # # @return [Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, nil] - required :shipping_address, - -> { - Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress - }, - nil?: true + required :shipping_address, -> { Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress }, nil?: true # @!attribute status # @@ -743,10 +736,7 @@ class CustomerBalanceTransaction < Orb::BaseModel # @!attribute type # # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type] - required :type, - enum: -> { - Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type - } + required :type, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type } # @!parse # # @param id [String] @@ -1401,10 +1391,7 @@ class LineItem < Orb::BaseModel # integration is configured. # # @return [Array] - required :tax_amounts, - -> { - Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] - } + required :tax_amounts, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] } # @!parse # # @param id [String] @@ -1461,11 +1448,21 @@ class LineItem < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "usage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment ... @@ -1980,11 +1977,26 @@ class Minimum < Orb::BaseModel # @example # ```ruby # case sub_line_item - # in {type: "matrix", amount: String, grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig} + # in { + # type: "matrix", + # amount: String, + # grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + # matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig + # } # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem ... - # in {type: "tier", amount: String, grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, name: String} + # in { + # type: "tier", + # amount: String, + # grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, + # name: String + # } # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem ... - # in {type: "'null'", amount: String, grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, name: String} + # in { + # type: "'null'", + # amount: String, + # grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, + # name: String + # } # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem ... # end # ``` @@ -2006,10 +2018,7 @@ class SubLineItem < Orb::Union variant :matrix, -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem } - variant :tier, - -> { - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem - } + variant :tier, -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem } variant :"'null'", -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem } @@ -2035,9 +2044,7 @@ class MatrixSubLineItem < Orb::BaseModel # # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, nil] required :grouping, - -> { - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping - }, + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping }, nil?: true # @!attribute matrix_config @@ -2144,9 +2151,7 @@ class TierSubLineItem < Orb::BaseModel # # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, nil] required :grouping, - -> { - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping - }, + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping }, nil?: true # @!attribute name @@ -2266,9 +2271,7 @@ class OtherSubLineItem < Orb::BaseModel # # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, nil] required :grouping, - -> { - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping - }, + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping }, nil?: true # @!attribute name diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index 1aed7932..583324e4 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -7,11 +7,26 @@ module Models # @example # ```ruby # case invoice_level_discount - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, reason: String} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # reason: String + # } # # Orb::Models::PercentageDiscount ... - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, reason: String} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # reason: String + # } # # Orb::Models::AmountDiscount ... - # in {discount_type: "trial", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, reason: String, trial_amount_discount: String} + # in { + # discount_type: "trial", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # reason: String, + # trial_amount_discount: String + # } # # Orb::Models::TrialDiscount ... # end # ``` diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index c77c5498..98e530e5 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -31,10 +31,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # All adjustments (ie. maximums, minimums, discounts) applied to the line item. # # @return [Array] - required :adjustments, - -> { - Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment] - } + required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment] } # @!attribute amount # The final amount for a line item after all adjustments and pre paid credits have @@ -207,11 +204,21 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "usage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # amount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment ... @@ -247,15 +254,9 @@ class Adjustment < Orb::Union variant :percentage_discount, -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment } - variant :minimum, - -> { - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment - } + variant :minimum, -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment } - variant :maximum, - -> { - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - } + variant :maximum, -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment } # @example # ```ruby @@ -730,11 +731,26 @@ class Minimum < Orb::BaseModel # @example # ```ruby # case sub_line_item - # in {type: "matrix", amount: String, grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig} + # in { + # type: "matrix", + # amount: String, + # grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, + # matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig + # } # # Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem ... - # in {type: "tier", amount: String, grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, name: String} + # in { + # type: "tier", + # amount: String, + # grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, + # name: String + # } # # Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem ... - # in {type: "'null'", amount: String, grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, name: String} + # in { + # type: "'null'", + # amount: String, + # grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, + # name: String + # } # # Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem ... # end # ``` @@ -780,9 +796,7 @@ class MatrixSubLineItem < Orb::BaseModel # # @return [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, nil] required :grouping, - -> { - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping - }, + -> { Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping }, nil?: true # @!attribute matrix_config diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 005ced0b..eb36c1e7 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -226,15 +226,40 @@ class Plan < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -261,10 +286,7 @@ class Adjustment < Orb::Union variant :amount_discount, -> { Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment } - variant :percentage_discount, - -> { - Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment - } + variant :percentage_discount, -> { Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, -> { Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment } diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 5bb03f17..c2a19d1a 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -97,55 +97,180 @@ class PlanCreateParams < Orb::BaseModel # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence, item_id: String, matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig} + # in { + # model_type: "matrix", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence, + # item_id: String, + # matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig + # } # # Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice ... - # in {model_type: "tiered", cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence, item_id: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice ... - # in {model_type: "grouped_with_metered_minimum", cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence, grouped_with_metered_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_metered_minimum", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence, + # grouped_with_metered_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice ... - # in {model_type: "matrix_with_display_name", cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence, item_id: String, matrix_with_display_name_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "matrix_with_display_name", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence, + # item_id: String, + # matrix_with_display_name_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice ... - # in {model_type: "grouped_tiered_package", cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence, grouped_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_tiered_package", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence, + # grouped_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice ... - # in {model_type: "max_group_tiered_package", cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence, item_id: String, max_group_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "max_group_tiered_package", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence, + # item_id: String, + # max_group_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice ... - # in {model_type: "scalable_matrix_with_unit_pricing", cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "scalable_matrix_with_unit_pricing", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice ... - # in {model_type: "scalable_matrix_with_tiered_pricing", cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "scalable_matrix_with_tiered_pricing", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice ... - # in {model_type: "cumulative_grouped_bulk", cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence, cumulative_grouped_bulk_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "cumulative_grouped_bulk", + # cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence, + # cumulative_grouped_bulk_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice ... # end # ``` @@ -229,30 +354,18 @@ class Price < Orb::Union variant :tiered_package, -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice } - variant :tiered_with_minimum, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice - } + variant :tiered_with_minimum, -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice } variant :unit_with_percent, -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice } variant :package_with_allocation, -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice - } + variant :tiered_with_proration, -> { Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice } - variant :unit_with_proration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice - } + variant :unit_with_proration, -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice } - variant :grouped_allocation, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice - } + variant :grouped_allocation, -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice } variant :grouped_with_prorated_minimum, -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice } @@ -263,10 +376,7 @@ class Price < Orb::Union variant :matrix_with_display_name, -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice - } + variant :bulk_with_proration, -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice } variant :grouped_tiered_package, -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice } @@ -512,9 +622,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -572,9 +680,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -652,10 +758,7 @@ class NewPlanPackagePrice < Orb::BaseModel # @!attribute package_config # # @return [Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig] - required :package_config, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig - } + required :package_config, -> { Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -677,9 +780,7 @@ class NewPlanPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -720,9 +821,7 @@ class NewPlanPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -859,9 +958,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -919,9 +1016,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -988,10 +1083,7 @@ class NewPlanMatrixPrice < Orb::BaseModel # @!attribute matrix_config # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig] - required :matrix_config, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig - } + required :matrix_config, -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig } # @!attribute model_type # @@ -1065,9 +1157,7 @@ class NewPlanMatrixPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1181,9 +1271,7 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - } + -> { Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] } # @!parse # # @param default_unit_amount [String] @@ -1245,9 +1333,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1305,9 +1391,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1385,10 +1469,7 @@ class NewPlanTieredPrice < Orb::BaseModel # @!attribute tiered_config # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig] - required :tiered_config, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig - } + required :tiered_config, -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1451,9 +1532,7 @@ class NewPlanTieredPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1553,9 +1632,7 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] } # @!parse # # @param tiers [Array] @@ -1621,9 +1698,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1681,9 +1756,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1784,9 +1857,7 @@ class NewPlanTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1827,9 +1898,7 @@ class NewPlanTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1930,9 +1999,7 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] } # @!parse # # @param tiers [Array] @@ -2006,9 +2073,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2066,9 +2131,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2345,9 +2408,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2405,9 +2466,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2462,10 +2521,7 @@ class NewPlanBulkBpsPrice < Orb::BaseModel # @!attribute bulk_bps_config # # @return [Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig] - required :bulk_bps_config, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig - } + required :bulk_bps_config, -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig } # @!attribute cadence # The cadence to bill for this price on. @@ -2510,9 +2566,7 @@ class NewPlanBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2553,9 +2607,7 @@ class NewPlanBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2619,9 +2671,7 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] } # @!parse # # @param tiers [Array] @@ -2724,9 +2774,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2784,9 +2832,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2990,9 +3036,7 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] } # @!parse # # @param tiers [Array] @@ -3087,9 +3131,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3147,9 +3189,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3206,9 +3246,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3252,9 +3290,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3295,9 +3331,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3404,9 +3438,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3464,9 +3496,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3522,10 +3552,7 @@ class NewPlanTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence] - required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence - } + required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3569,9 +3596,7 @@ class NewPlanTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3612,9 +3637,7 @@ class NewPlanTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3721,9 +3744,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3781,9 +3802,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3884,9 +3903,7 @@ class NewPlanTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3927,9 +3944,7 @@ class NewPlanTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4036,9 +4051,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4096,9 +4109,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4154,10 +4165,7 @@ class NewPlanUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence] - required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence - } + required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4201,9 +4209,7 @@ class NewPlanUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4244,9 +4250,7 @@ class NewPlanUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4353,9 +4357,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4413,9 +4415,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4472,9 +4472,7 @@ class NewPlanPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4518,9 +4516,7 @@ class NewPlanPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4561,9 +4557,7 @@ class NewPlanPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4670,9 +4664,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4730,9 +4722,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4833,9 +4823,7 @@ class NewPlanTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4876,9 +4864,7 @@ class NewPlanTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4985,9 +4971,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5045,9 +5029,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5148,9 +5130,7 @@ class NewPlanUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5191,9 +5171,7 @@ class NewPlanUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5300,9 +5278,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5360,9 +5336,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5463,9 +5437,7 @@ class NewPlanGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5506,9 +5478,7 @@ class NewPlanGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5615,9 +5585,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5675,9 +5643,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5734,9 +5700,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -5780,9 +5744,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5823,9 +5785,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5932,9 +5892,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5992,9 +5950,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6051,9 +6007,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence } # @!attribute grouped_with_metered_minimum_config # @@ -6097,9 +6051,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6140,9 +6092,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6249,9 +6199,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6309,9 +6257,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6368,9 +6314,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -6414,9 +6358,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6457,9 +6399,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6566,9 +6506,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6626,9 +6564,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6729,9 +6665,7 @@ class NewPlanBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6772,9 +6706,7 @@ class NewPlanBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6881,9 +6813,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6941,9 +6871,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7000,9 +6928,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence } # @!attribute grouped_tiered_package_config # @@ -7046,9 +6972,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7089,9 +7013,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7198,9 +7120,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7258,9 +7178,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7317,9 +7235,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -7363,9 +7279,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7406,9 +7320,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7515,9 +7427,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7575,9 +7485,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7634,9 +7542,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -7680,9 +7586,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7723,9 +7627,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7832,9 +7734,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7892,9 +7792,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7951,9 +7849,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -7997,9 +7893,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8040,9 +7934,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8149,9 +8041,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8209,9 +8099,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8268,9 +8156,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence } # @!attribute cumulative_grouped_bulk_config # @@ -8314,9 +8200,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8357,9 +8241,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8466,9 +8348,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8526,9 +8406,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 74ed1f54..db62ad87 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -18,61 +18,201 @@ module Models # @example # ```ruby # case price - # in {model_type: "unit", id: String, billable_metric: Orb::Models::Price::UnitPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration} + # in { + # model_type: "unit", + # id: String, + # billable_metric: Orb::Models::Price::UnitPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::UnitPrice ... - # in {model_type: "package", id: String, billable_metric: Orb::Models::Price::PackagePrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration} + # in { + # model_type: "package", + # id: String, + # billable_metric: Orb::Models::Price::PackagePrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration + # } # # Orb::Models::Price::PackagePrice ... - # in {model_type: "matrix", id: String, billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration} + # in { + # model_type: "matrix", + # id: String, + # billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::MatrixPrice ... - # in {model_type: "tiered", id: String, billable_metric: Orb::Models::Price::TieredPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration} + # in { + # model_type: "tiered", + # id: String, + # billable_metric: Orb::Models::Price::TieredPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredPrice ... - # in {model_type: "tiered_bps", id: String, billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration} + # in { + # model_type: "tiered_bps", + # id: String, + # billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredBpsPrice ... - # in {model_type: "bps", id: String, billable_metric: Orb::Models::Price::BpsPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration} + # in { + # model_type: "bps", + # id: String, + # billable_metric: Orb::Models::Price::BpsPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::BpsPrice ... - # in {model_type: "bulk_bps", id: String, billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration} + # in { + # model_type: "bulk_bps", + # id: String, + # billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::BulkBpsPrice ... - # in {model_type: "bulk", id: String, billable_metric: Orb::Models::Price::BulkPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration} + # in { + # model_type: "bulk", + # id: String, + # billable_metric: Orb::Models::Price::BulkPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::BulkPrice ... - # in {model_type: "threshold_total_amount", id: String, billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration} + # in { + # model_type: "threshold_total_amount", + # id: String, + # billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::ThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", id: String, billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration} + # in { + # model_type: "tiered_package", + # id: String, + # billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredPackagePrice ... - # in {model_type: "grouped_tiered", id: String, billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration} + # in { + # model_type: "grouped_tiered", + # id: String, + # billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::GroupedTieredPrice ... - # in {model_type: "tiered_with_minimum", id: String, billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration} + # in { + # model_type: "tiered_with_minimum", + # id: String, + # billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredWithMinimumPrice ... - # in {model_type: "tiered_package_with_minimum", id: String, billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration} + # in { + # model_type: "tiered_package_with_minimum", + # id: String, + # billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredPackageWithMinimumPrice ... - # in {model_type: "package_with_allocation", id: String, billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration} + # in { + # model_type: "package_with_allocation", + # id: String, + # billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::PackageWithAllocationPrice ... - # in {model_type: "unit_with_percent", id: String, billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration} + # in { + # model_type: "unit_with_percent", + # id: String, + # billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::UnitWithPercentPrice ... - # in {model_type: "matrix_with_allocation", id: String, billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration} + # in { + # model_type: "matrix_with_allocation", + # id: String, + # billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::MatrixWithAllocationPrice ... - # in {model_type: "tiered_with_proration", id: String, billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration} + # in { + # model_type: "tiered_with_proration", + # id: String, + # billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::TieredWithProrationPrice ... - # in {model_type: "unit_with_proration", id: String, billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration} + # in { + # model_type: "unit_with_proration", + # id: String, + # billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::UnitWithProrationPrice ... - # in {model_type: "grouped_allocation", id: String, billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration} + # in { + # model_type: "grouped_allocation", + # id: String, + # billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::GroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", id: String, billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration} + # in { + # model_type: "grouped_with_prorated_minimum", + # id: String, + # billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::GroupedWithProratedMinimumPrice ... - # in {model_type: "grouped_with_metered_minimum", id: String, billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration} + # in { + # model_type: "grouped_with_metered_minimum", + # id: String, + # billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::GroupedWithMeteredMinimumPrice ... - # in {model_type: "matrix_with_display_name", id: String, billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration} + # in { + # model_type: "matrix_with_display_name", + # id: String, + # billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration + # } # # Orb::Models::Price::MatrixWithDisplayNamePrice ... - # in {model_type: "bulk_with_proration", id: String, billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration} + # in { + # model_type: "bulk_with_proration", + # id: String, + # billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::BulkWithProrationPrice ... - # in {model_type: "grouped_tiered_package", id: String, billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration} + # in { + # model_type: "grouped_tiered_package", + # id: String, + # billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration + # } # # Orb::Models::Price::GroupedTieredPackagePrice ... - # in {model_type: "max_group_tiered_package", id: String, billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration} + # in { + # model_type: "max_group_tiered_package", + # id: String, + # billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration + # } # # Orb::Models::Price::MaxGroupTieredPackagePrice ... - # in {model_type: "scalable_matrix_with_unit_pricing", id: String, billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration} + # in { + # model_type: "scalable_matrix_with_unit_pricing", + # id: String, + # billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::ScalableMatrixWithUnitPricingPrice ... - # in {model_type: "scalable_matrix_with_tiered_pricing", id: String, billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration} + # in { + # model_type: "scalable_matrix_with_tiered_pricing", + # id: String, + # billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::ScalableMatrixWithTieredPricingPrice ... - # in {model_type: "cumulative_grouped_bulk", id: String, billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration} + # in { + # model_type: "cumulative_grouped_bulk", + # id: String, + # billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, + # billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration + # } # # Orb::Models::Price::CumulativeGroupedBulkPrice ... # end # ``` @@ -191,10 +331,7 @@ class Price < Orb::Union variant :max_group_tiered_package, -> { Orb::Models::Price::MaxGroupTieredPackagePrice } - variant :scalable_matrix_with_unit_pricing, - -> { - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice - } + variant :scalable_matrix_with_unit_pricing, -> { Orb::Models::Price::ScalableMatrixWithUnitPricingPrice } variant :scalable_matrix_with_tiered_pricing, -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice } @@ -767,10 +904,7 @@ class PackagePrice < Orb::BaseModel # @!attribute billing_cycle_configuration # # @return [Orb::Models::Price::PackagePrice::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { - Orb::Models::Price::PackagePrice::BillingCycleConfiguration - } + required :billing_cycle_configuration, -> { Orb::Models::Price::PackagePrice::BillingCycleConfiguration } # @!attribute cadence # @@ -1320,10 +1454,7 @@ class MatrixPrice < Orb::BaseModel # @!attribute billing_cycle_configuration # # @return [Orb::Models::Price::MatrixPrice::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { - Orb::Models::Price::MatrixPrice::BillingCycleConfiguration - } + required :billing_cycle_configuration, -> { Orb::Models::Price::MatrixPrice::BillingCycleConfiguration } # @!attribute cadence # @@ -1732,10 +1863,7 @@ class MatrixConfig < Orb::BaseModel # Matrix values for specified matrix grouping keys # # @return [Array] - required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - } + required :matrix_values, -> { Orb::ArrayOf[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] } # @!parse # # @param default_unit_amount [String] @@ -1914,10 +2042,7 @@ class TieredPrice < Orb::BaseModel # @!attribute billing_cycle_configuration # # @return [Orb::Models::Price::TieredPrice::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { - Orb::Models::Price::TieredPrice::BillingCycleConfiguration - } + required :billing_cycle_configuration, -> { Orb::Models::Price::TieredPrice::BillingCycleConfiguration } # @!attribute cadence # @@ -3632,10 +3757,7 @@ class BulkBpsPrice < Orb::BaseModel # @!attribute billing_cycle_configuration # # @return [Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { - Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration - } + required :billing_cycle_configuration, -> { Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration } # @!attribute bulk_bps_config # @@ -4999,9 +5121,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -5114,9 +5234,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -5334,11 +5452,7 @@ class TieredPackagePrice < Orb::BaseModel # @!attribute credit_allocation # # @return [Orb::Models::Price::TieredPackagePrice::CreditAllocation, nil] - required :credit_allocation, - -> { - Orb::Models::Price::TieredPackagePrice::CreditAllocation - }, - nil?: true + required :credit_allocation, -> { Orb::Models::Price::TieredPackagePrice::CreditAllocation }, nil?: true # @!attribute currency # @@ -5528,9 +5642,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -5643,9 +5755,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -5863,11 +5973,7 @@ class GroupedTieredPrice < Orb::BaseModel # @!attribute credit_allocation # # @return [Orb::Models::Price::GroupedTieredPrice::CreditAllocation, nil] - required :credit_allocation, - -> { - Orb::Models::Price::GroupedTieredPrice::CreditAllocation - }, - nil?: true + required :credit_allocation, -> { Orb::Models::Price::GroupedTieredPrice::CreditAllocation }, nil?: true # @!attribute currency # @@ -6057,9 +6163,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -6172,9 +6276,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -6366,11 +6468,7 @@ class TieredWithMinimumPrice < Orb::BaseModel # @!attribute billable_metric # # @return [Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, nil] - required :billable_metric, - -> { - Orb::Models::Price::TieredWithMinimumPrice::BillableMetric - }, - nil?: true + required :billable_metric, -> { Orb::Models::Price::TieredWithMinimumPrice::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # @@ -6588,9 +6686,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -6703,9 +6799,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -7117,9 +7211,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -7232,9 +7324,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -7646,9 +7736,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -7761,9 +7849,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -7981,11 +8067,7 @@ class UnitWithPercentPrice < Orb::BaseModel # @!attribute credit_allocation # # @return [Orb::Models::Price::UnitWithPercentPrice::CreditAllocation, nil] - required :credit_allocation, - -> { - Orb::Models::Price::UnitWithPercentPrice::CreditAllocation - }, - nil?: true + required :credit_allocation, -> { Orb::Models::Price::UnitWithPercentPrice::CreditAllocation }, nil?: true # @!attribute currency # @@ -8175,9 +8257,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -8290,9 +8370,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -8705,9 +8783,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -8820,9 +8896,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -8916,9 +8990,7 @@ class MatrixWithAllocationConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } + -> { Orb::ArrayOf[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] } # @!parse # # @param allocation [Float] @@ -9093,11 +9165,7 @@ class TieredWithProrationPrice < Orb::BaseModel # @!attribute billable_metric # # @return [Orb::Models::Price::TieredWithProrationPrice::BillableMetric, nil] - required :billable_metric, - -> { - Orb::Models::Price::TieredWithProrationPrice::BillableMetric - }, - nil?: true + required :billable_metric, -> { Orb::Models::Price::TieredWithProrationPrice::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # @@ -9315,9 +9383,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -9430,9 +9496,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -9624,11 +9688,7 @@ class UnitWithProrationPrice < Orb::BaseModel # @!attribute billable_metric # # @return [Orb::Models::Price::UnitWithProrationPrice::BillableMetric, nil] - required :billable_metric, - -> { - Orb::Models::Price::UnitWithProrationPrice::BillableMetric - }, - nil?: true + required :billable_metric, -> { Orb::Models::Price::UnitWithProrationPrice::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # @@ -9846,9 +9906,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -9961,9 +10019,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -10155,11 +10211,7 @@ class GroupedAllocationPrice < Orb::BaseModel # @!attribute billable_metric # # @return [Orb::Models::Price::GroupedAllocationPrice::BillableMetric, nil] - required :billable_metric, - -> { - Orb::Models::Price::GroupedAllocationPrice::BillableMetric - }, - nil?: true + required :billable_metric, -> { Orb::Models::Price::GroupedAllocationPrice::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # @@ -10377,9 +10429,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -10492,9 +10542,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -10906,9 +10954,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -11021,9 +11067,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -11435,9 +11479,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -11550,9 +11592,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -11964,9 +12004,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -12079,9 +12117,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -12273,11 +12309,7 @@ class BulkWithProrationPrice < Orb::BaseModel # @!attribute billable_metric # # @return [Orb::Models::Price::BulkWithProrationPrice::BillableMetric, nil] - required :billable_metric, - -> { - Orb::Models::Price::BulkWithProrationPrice::BillableMetric - }, - nil?: true + required :billable_metric, -> { Orb::Models::Price::BulkWithProrationPrice::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # @@ -12495,9 +12527,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -12610,9 +12640,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -13024,9 +13052,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -13139,9 +13165,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -13553,9 +13577,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -13668,9 +13690,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -14082,9 +14102,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -14197,9 +14215,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -14458,11 +14474,7 @@ class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel # @!attribute maximum # # @return [Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum, nil] - required :maximum, - -> { - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum - }, - nil?: true + required :maximum, -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum }, nil?: true # @!attribute maximum_amount # @@ -14481,11 +14493,7 @@ class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel # @!attribute minimum # # @return [Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum, nil] - required :minimum, - -> { - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum - }, - nil?: true + required :minimum, -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum }, nil?: true # @!attribute minimum_amount # @@ -14521,9 +14529,7 @@ class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration - }, + -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration }, nil?: true # @!parse @@ -14621,9 +14627,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -14736,9 +14740,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -15150,9 +15152,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] @@ -15265,9 +15265,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # @param duration [Integer] diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index 62d842f9..7bf524ca 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -119,10 +119,7 @@ class PriceCreateParams < Orb::BaseModel # @!attribute matrix_with_allocation_config # # @return [Orb::Models::PriceCreateParams::MatrixWithAllocationConfig] - required :matrix_with_allocation_config, - -> { - Orb::Models::PriceCreateParams::MatrixWithAllocationConfig - } + required :matrix_with_allocation_config, -> { Orb::Models::PriceCreateParams::MatrixWithAllocationConfig } # @!attribute tiered_config # @@ -589,10 +586,7 @@ class MatrixConfig < Orb::BaseModel # Matrix values for specified matrix grouping keys # # @return [Array] - required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - } + required :matrix_values, -> { Orb::ArrayOf[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] } # @!parse # # @param default_unit_amount [String] diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 5f88553d..80e9595e 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -330,15 +330,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -829,11 +854,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval ... # end # ``` diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 92265bd4..ffa699d9 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -135,10 +135,7 @@ class SubscriptionCancelResponse < Orb::BaseModel # The maximum intervals for this subscription. # # @return [Array] - required :maximum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MaximumInterval] - } + required :maximum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MaximumInterval] } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -153,10 +150,7 @@ class SubscriptionCancelResponse < Orb::BaseModel # The minimum intervals for this subscription. # # @return [Array] - required :minimum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MinimumInterval] - } + required :minimum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::MinimumInterval] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -319,15 +313,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -818,11 +837,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -841,18 +875,12 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel class DiscountInterval < Orb::Union discriminator :discount_type - variant :amount, - -> { - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval - } + variant :amount, -> { Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval } variant :percentage, -> { Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval } - variant :usage, - -> { - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - } + variant :usage, -> { Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval } # @example # ```ruby @@ -1265,9 +1293,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 29ce759b..120f394d 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -346,15 +346,40 @@ class AddAdjustment < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "percentage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount ... - # in {adjustment_type: "usage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount ... - # in {adjustment_type: "amount_discount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "amount_discount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount ... - # in {adjustment_type: "minimum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, item_id: String, minimum_amount: String} + # in { + # adjustment_type: "minimum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # item_id: String, + # minimum_amount: String + # } # # Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum ... - # in {adjustment_type: "maximum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, maximum_amount: String, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # maximum_amount: String, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum ... # end # ``` @@ -386,15 +411,9 @@ class Adjustment < Orb::Union variant :amount_discount, -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount } - variant :minimum, - -> { - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum - } + variant :minimum, -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum } - variant :maximum, - -> { - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - } + variant :maximum, -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum } # @example # ```ruby @@ -787,10 +806,7 @@ class AllocationPrice < Orb::BaseModel # The cadence at which to allocate the amount to the customer. # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence] - required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence - } + required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -936,41 +952,131 @@ class DiscountType < Orb::Enum # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig} + # in { + # model_type: "matrix", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence, + # item_id: String, + # matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice ... - # in {model_type: "tiered", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence, item_id: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice ... # end # ``` @@ -1019,23 +1125,14 @@ class DiscountType < Orb::Enum class Price < Orb::Union discriminator :model_type - variant :unit, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice - } + variant :unit, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice } variant :package, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice } - variant :matrix, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice - } + variant :matrix, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice } - variant :tiered, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice - } + variant :tiered, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice } variant :tiered_bps, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice } @@ -1045,10 +1142,7 @@ class Price < Orb::Union variant :bulk_bps, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice } - variant :bulk, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice - } + variant :bulk, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice } @@ -1097,9 +1191,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1144,9 +1236,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1187,9 +1277,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1326,9 +1414,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1386,9 +1472,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1445,9 +1529,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1492,9 +1574,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1535,9 +1615,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1683,9 +1761,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1743,9 +1819,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1802,9 +1876,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1849,9 +1921,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1892,9 +1962,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1996,7 +2064,11 @@ class Cadence < Orb::Enum # matrix_config => { # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixConfig < Orb::BaseModel @@ -2017,9 +2089,11 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + end # @!parse # # @param default_unit_amount [String] @@ -2081,9 +2155,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2141,9 +2213,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2200,9 +2270,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -2247,9 +2315,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2290,9 +2356,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2401,9 +2465,7 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } # @!parse # # @param tiers [Array] @@ -2469,9 +2531,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2529,9 +2589,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2588,9 +2646,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -2635,9 +2691,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2678,9 +2732,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2780,7 +2832,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + # ] === _1 + # end # } # ``` class TieredBpsConfig < Orb::BaseModel @@ -2790,9 +2846,11 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -2866,9 +2924,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2926,9 +2982,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2991,9 +3045,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3032,9 +3084,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3075,9 +3125,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3222,9 +3270,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3282,9 +3328,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3347,9 +3391,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3388,9 +3430,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3431,9 +3471,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3506,9 +3544,7 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] } # @!parse # # @param tiers [Array] @@ -3611,9 +3647,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3671,9 +3705,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3736,9 +3768,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3777,9 +3807,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3820,9 +3848,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3894,9 +3920,7 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } # @!parse # # @param tiers [Array] @@ -3991,9 +4015,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4051,9 +4073,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4110,9 +4130,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4156,9 +4174,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4199,9 +4215,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4317,9 +4331,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4377,9 +4389,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4436,9 +4446,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4482,9 +4490,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4525,9 +4531,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4643,9 +4647,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4703,9 +4705,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4762,9 +4762,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4808,9 +4806,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4851,9 +4847,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4969,9 +4963,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5029,9 +5021,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5088,9 +5078,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5134,9 +5122,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5177,9 +5163,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5295,9 +5279,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5355,9 +5337,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5414,9 +5394,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5460,9 +5438,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5503,9 +5479,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5621,9 +5595,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5681,9 +5653,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5740,9 +5710,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5786,9 +5754,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5829,9 +5795,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5947,9 +5911,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6007,9 +5969,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6066,9 +6026,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -6112,9 +6070,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6155,9 +6111,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6273,9 +6227,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6333,9 +6285,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6392,9 +6342,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config # @@ -6438,9 +6386,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6481,9 +6427,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6599,9 +6543,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6659,9 +6601,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6718,9 +6658,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -6764,9 +6702,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6807,9 +6743,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6925,9 +6859,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6985,9 +6917,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7049,9 +6979,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -7090,9 +7018,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7133,9 +7059,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7251,9 +7175,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7311,9 +7233,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7488,10 +7408,7 @@ class ReplaceAdjustment < Orb::BaseModel # The definition of a new adjustment to create and add to the subscription. # # @return [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum] - required :adjustment, - union: -> { - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment - } + required :adjustment, union: -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment } # @!attribute replaces_adjustment_id # The id of the adjustment on the plan to replace in the subscription. @@ -7514,15 +7431,40 @@ class ReplaceAdjustment < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "percentage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount ... - # in {adjustment_type: "usage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount ... - # in {adjustment_type: "amount_discount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "amount_discount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount ... - # in {adjustment_type: "minimum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, item_id: String, minimum_amount: String} + # in { + # adjustment_type: "minimum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # item_id: String, + # minimum_amount: String + # } # # Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum ... - # in {adjustment_type: "maximum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, maximum_amount: String, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # maximum_amount: String, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum ... # end # ``` @@ -7554,15 +7496,9 @@ class Adjustment < Orb::Union variant :amount_discount, -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount } - variant :minimum, - -> { - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum - } + variant :minimum, -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum } - variant :maximum, - -> { - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - } + variant :maximum, -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum } # @example # ```ruby @@ -8090,41 +8026,131 @@ class DiscountType < Orb::Enum # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig} + # in { + # model_type: "matrix", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence, + # item_id: String, + # matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice ... - # in {model_type: "tiered", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence, item_id: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ... # end # ``` @@ -8173,10 +8199,7 @@ class DiscountType < Orb::Enum class Price < Orb::Union discriminator :model_type - variant :unit, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice - } + variant :unit, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice } variant :package, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice } @@ -8190,18 +8213,12 @@ class Price < Orb::Union variant :tiered_bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice } - variant :bps, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice - } + variant :bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice } variant :bulk_bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice } - variant :bulk, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice - } + variant :bulk, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice } @@ -8250,9 +8267,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -8297,9 +8312,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8340,9 +8353,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8479,9 +8490,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8539,9 +8548,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8598,9 +8605,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -8645,9 +8650,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8688,9 +8691,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8836,9 +8837,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8896,9 +8895,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8955,9 +8952,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -9002,9 +8997,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9045,9 +9038,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9149,7 +9140,11 @@ class Cadence < Orb::Enum # matrix_config => { # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixConfig < Orb::BaseModel @@ -9170,9 +9165,11 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + end # @!parse # # @param default_unit_amount [String] @@ -9234,9 +9231,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9294,9 +9289,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9353,9 +9346,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -9400,9 +9391,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9443,9 +9432,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9554,9 +9541,7 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } # @!parse # # @param tiers [Array] @@ -9622,9 +9607,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9682,9 +9665,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9741,9 +9722,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -9788,9 +9767,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9831,9 +9808,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9933,7 +9908,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + # ] === _1 + # end # } # ``` class TieredBpsConfig < Orb::BaseModel @@ -9943,9 +9922,11 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -10019,9 +10000,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10079,9 +10058,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10144,9 +10121,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10185,9 +10160,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10228,9 +10201,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -10375,9 +10346,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10435,9 +10404,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10500,9 +10467,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10541,9 +10506,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10584,9 +10547,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -10649,7 +10610,11 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # @example # ```ruby # bulk_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + # ] === _1 + # end # } # ``` class BulkBpsConfig < Orb::BaseModel @@ -10659,9 +10624,11 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -10764,9 +10731,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10824,9 +10789,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10889,9 +10852,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10930,9 +10891,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10973,9 +10932,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11047,9 +11004,7 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } # @!parse # # @param tiers [Array] @@ -11144,9 +11099,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11204,9 +11157,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11263,9 +11214,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11309,9 +11258,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -11352,9 +11299,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11470,9 +11415,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11530,9 +11473,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11589,9 +11530,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11635,9 +11574,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -11678,9 +11615,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11796,9 +11731,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11856,9 +11789,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11915,9 +11846,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11961,9 +11890,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12004,9 +11931,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12122,9 +12047,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12182,9 +12105,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12241,9 +12162,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12287,9 +12206,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12330,9 +12247,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12448,9 +12363,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12508,9 +12421,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12567,9 +12478,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12613,9 +12522,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12656,9 +12563,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12774,9 +12679,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12834,9 +12737,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12893,9 +12794,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12939,9 +12838,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12982,9 +12879,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13100,9 +12995,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13160,9 +13053,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13219,9 +13110,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -13265,9 +13154,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13308,9 +13195,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13426,9 +13311,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13486,9 +13369,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13545,9 +13426,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config # @@ -13591,9 +13470,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13634,9 +13511,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13752,9 +13627,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13812,9 +13685,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13871,9 +13742,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -13917,9 +13786,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13960,9 +13827,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -14078,9 +13943,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -14138,9 +14001,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14202,9 +14063,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -14243,9 +14102,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -14286,9 +14143,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -14404,9 +14259,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -14464,9 +14317,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 15045dd5..c17b5253 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -135,10 +135,7 @@ class SubscriptionCreateResponse < Orb::BaseModel # The maximum intervals for this subscription. # # @return [Array] - required :maximum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MaximumInterval] - } + required :maximum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MaximumInterval] } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -153,10 +150,7 @@ class SubscriptionCreateResponse < Orb::BaseModel # The minimum intervals for this subscription. # # @return [Array] - required :minimum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MinimumInterval] - } + required :minimum_intervals, -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::MinimumInterval] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -319,15 +313,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -818,11 +837,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -841,18 +875,12 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel class DiscountInterval < Orb::Union discriminator :discount_type - variant :amount, - -> { - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval - } + variant :amount, -> { Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval } variant :percentage, -> { Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval } - variant :usage, - -> { - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - } + variant :usage, -> { Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval } # @example # ```ruby @@ -1265,9 +1293,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index d0281e69..5bf1d21a 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -119,11 +119,7 @@ class Add < Orb::BaseModel # billing on the subscription. # # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :end_date, - union: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate - }, - nil?: true + optional :end_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate }, nil?: true # @!attribute external_price_id # The external price id of the price to add to the subscription. @@ -136,9 +132,7 @@ class Add < Orb::BaseModel # # @return [Array, nil] optional :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition] }, nil?: true # @!attribute maximum_amount @@ -484,61 +478,201 @@ class FixedFeeQuantityTransition < Orb::BaseModel # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "package", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "matrix", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice ... - # in {model_type: "matrix_with_allocation", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "matrix_with_allocation", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice ... - # in {model_type: "tiered", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence, currency: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence, + # currency: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence, currency: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence, + # currency: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence, currency: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence, + # currency: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice ... - # in {model_type: "grouped_tiered", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence, currency: String, grouped_tiered_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "grouped_tiered", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence, + # currency: String, + # grouped_tiered_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice ... - # in {model_type: "max_group_tiered_package", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "max_group_tiered_package", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice ... - # in {model_type: "tiered_package_with_minimum", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered_package_with_minimum", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence, currency: String, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence, + # currency: String, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence, currency: String, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence, + # currency: String, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice ... - # in {model_type: "grouped_with_metered_minimum", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence, currency: String, grouped_with_metered_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "grouped_with_metered_minimum", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence, + # currency: String, + # grouped_with_metered_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice ... - # in {model_type: "matrix_with_display_name", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "matrix_with_display_name", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence, currency: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence, + # currency: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice ... - # in {model_type: "grouped_tiered_package", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence, currency: String, grouped_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 }} + # in { + # model_type: "grouped_tiered_package", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence, + # currency: String, + # grouped_tiered_package_config: -> { Orb::HashOf[Orb::Unknown] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice ... - # in {model_type: "scalable_matrix_with_unit_pricing", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "scalable_matrix_with_unit_pricing", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice ... - # in {model_type: "scalable_matrix_with_tiered_pricing", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence, currency: String, item_id: String} + # in { + # model_type: "scalable_matrix_with_tiered_pricing", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence, + # currency: String, + # item_id: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice ... - # in {model_type: "cumulative_grouped_bulk", cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence, cumulative_grouped_bulk_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, currency: String} + # in { + # model_type: "cumulative_grouped_bulk", + # cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence, + # cumulative_grouped_bulk_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # currency: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice ... # end # ``` @@ -607,26 +741,17 @@ class FixedFeeQuantityTransition < Orb::BaseModel class Price < Orb::Union discriminator :model_type - variant :unit, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice - } + variant :unit, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice } variant :package, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice } - variant :matrix, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice - } + variant :matrix, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice } variant :matrix_with_allocation, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice } - variant :tiered, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice - } + variant :tiered, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice } variant :tiered_bps, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice } @@ -636,10 +761,7 @@ class Price < Orb::Union variant :bulk_bps, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice } - variant :bulk, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice - } + variant :bulk, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice } variant :threshold_total_amount, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice } @@ -715,9 +837,7 @@ class NewFloatingUnitPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -768,9 +888,7 @@ class NewFloatingUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -804,9 +922,7 @@ class NewFloatingUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -934,9 +1050,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -994,9 +1108,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1053,9 +1165,7 @@ class NewFloatingPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1106,9 +1216,7 @@ class NewFloatingPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1142,9 +1250,7 @@ class NewFloatingPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1281,9 +1387,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1341,9 +1445,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1400,9 +1502,7 @@ class NewFloatingMatrixPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1453,9 +1553,7 @@ class NewFloatingMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1489,9 +1587,7 @@ class NewFloatingMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1584,7 +1680,11 @@ class Cadence < Orb::Enum # matrix_config => { # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixConfig < Orb::BaseModel @@ -1605,9 +1705,11 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + end # @!parse # # @param default_unit_amount [String] @@ -1669,9 +1771,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1729,9 +1829,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1788,9 +1886,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1841,9 +1937,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1877,9 +1971,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1973,7 +2065,11 @@ class Cadence < Orb::Enum # allocation: Float, # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixWithAllocationConfig < Orb::BaseModel @@ -2000,9 +2096,11 @@ class MatrixWithAllocationConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + end # @!parse # # @param allocation [Float] @@ -2065,9 +2163,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2125,9 +2221,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2184,9 +2278,7 @@ class NewFloatingTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2237,9 +2329,7 @@ class NewFloatingTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2273,9 +2363,7 @@ class NewFloatingTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2375,9 +2463,7 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] } # @!parse # # @param tiers [Array] @@ -2443,9 +2529,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2503,9 +2587,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2562,9 +2644,7 @@ class NewFloatingTieredBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2615,9 +2695,7 @@ class NewFloatingTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2651,9 +2729,7 @@ class NewFloatingTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2744,7 +2820,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + # ] === _1 + # end # } # ``` class TieredBpsConfig < Orb::BaseModel @@ -2754,9 +2834,11 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -2830,9 +2912,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2890,9 +2970,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2955,9 +3033,7 @@ class NewFloatingBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3002,9 +3078,7 @@ class NewFloatingBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3038,9 +3112,7 @@ class NewFloatingBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3176,9 +3248,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3236,9 +3306,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3301,9 +3369,7 @@ class NewFloatingBulkBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3348,9 +3414,7 @@ class NewFloatingBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3384,9 +3448,7 @@ class NewFloatingBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3450,9 +3512,7 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] } # @!parse # # @param tiers [Array] @@ -3555,9 +3615,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3615,9 +3673,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3680,9 +3736,7 @@ class NewFloatingBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3727,9 +3781,7 @@ class NewFloatingBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3763,9 +3815,7 @@ class NewFloatingBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3828,9 +3878,7 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] } # @!parse # # @param tiers [Array] @@ -3925,9 +3973,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3985,9 +4031,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4044,9 +4088,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4096,9 +4138,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4132,9 +4172,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4241,9 +4279,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4301,9 +4337,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4360,9 +4394,7 @@ class NewFloatingTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4412,9 +4444,7 @@ class NewFloatingTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4448,9 +4478,7 @@ class NewFloatingTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4557,9 +4585,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4617,9 +4643,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4676,9 +4700,7 @@ class NewFloatingGroupedTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4728,9 +4750,7 @@ class NewFloatingGroupedTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4764,9 +4784,7 @@ class NewFloatingGroupedTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4873,9 +4891,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4933,9 +4949,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4992,9 +5006,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5044,9 +5056,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5080,9 +5090,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5189,9 +5197,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5249,9 +5255,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5308,9 +5312,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5360,9 +5362,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5396,9 +5396,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5505,9 +5503,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5565,9 +5561,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5624,9 +5618,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5676,9 +5668,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5712,9 +5702,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5821,9 +5809,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5881,9 +5867,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5940,9 +5924,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5992,9 +5974,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6028,9 +6008,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6137,9 +6115,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6197,9 +6173,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6256,9 +6230,7 @@ class NewFloatingUnitWithPercentPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6308,9 +6280,7 @@ class NewFloatingUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6344,9 +6314,7 @@ class NewFloatingUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6453,9 +6421,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6513,9 +6479,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6572,9 +6536,7 @@ class NewFloatingTieredWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6624,9 +6586,7 @@ class NewFloatingTieredWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6660,9 +6620,7 @@ class NewFloatingTieredWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6769,9 +6727,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6829,9 +6785,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6888,9 +6842,7 @@ class NewFloatingUnitWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6940,9 +6892,7 @@ class NewFloatingUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6976,9 +6926,7 @@ class NewFloatingUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7085,9 +7033,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7145,9 +7091,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7204,9 +7148,7 @@ class NewFloatingGroupedAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -7256,9 +7198,7 @@ class NewFloatingGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7292,9 +7232,7 @@ class NewFloatingGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7401,9 +7339,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7461,9 +7397,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7520,9 +7454,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -7572,9 +7504,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7608,9 +7538,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7717,9 +7645,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7777,9 +7703,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7836,9 +7760,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -7888,9 +7810,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7924,9 +7844,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8033,9 +7951,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8093,9 +8009,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8152,9 +8066,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -8204,9 +8116,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8240,9 +8150,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8349,9 +8257,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8409,9 +8315,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8473,9 +8377,7 @@ class NewFloatingBulkWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -8520,9 +8422,7 @@ class NewFloatingBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8556,9 +8456,7 @@ class NewFloatingBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8665,9 +8563,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8725,9 +8621,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8784,9 +8678,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -8836,9 +8728,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8872,9 +8762,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8981,9 +8869,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9041,9 +8927,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9100,9 +8984,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -9152,9 +9034,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9188,9 +9068,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9297,9 +9175,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9357,9 +9233,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9416,9 +9290,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -9468,9 +9340,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9504,9 +9374,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9613,9 +9481,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9673,9 +9539,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9732,9 +9596,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence } # @!attribute cumulative_grouped_bulk_config # @@ -9784,9 +9646,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9820,9 +9680,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9929,9 +9787,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9989,9 +9845,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10082,15 +9936,40 @@ class AddAdjustment < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "percentage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount ... - # in {adjustment_type: "usage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount ... - # in {adjustment_type: "amount_discount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "amount_discount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount ... - # in {adjustment_type: "minimum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, item_id: String, minimum_amount: String} + # in { + # adjustment_type: "minimum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # item_id: String, + # minimum_amount: String + # } # # Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum ... - # in {adjustment_type: "maximum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, maximum_amount: String, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # maximum_amount: String, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum ... # end # ``` @@ -10456,11 +10335,7 @@ class Edit < Orb::BaseModel # will not be updated. # # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :end_date, - union: -> { - Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate - }, - nil?: true + optional :end_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate }, nil?: true # @!attribute fixed_fee_quantity_transitions # A list of fixed fee quantity transitions to use for this price interval. Note @@ -10469,9 +10344,7 @@ class Edit < Orb::BaseModel # # @return [Array, nil] optional :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition] }, nil?: true # @!attribute [r] start_date diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 1b7bca0a..9e86869f 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -318,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -817,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1260,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index a4d58b52..e99ec31e 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -341,15 +341,40 @@ class AddAdjustment < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "percentage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount ... - # in {adjustment_type: "usage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount ... - # in {adjustment_type: "amount_discount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "amount_discount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount ... - # in {adjustment_type: "minimum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, item_id: String, minimum_amount: String} + # in { + # adjustment_type: "minimum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # item_id: String, + # minimum_amount: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum ... - # in {adjustment_type: "maximum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, maximum_amount: String, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # maximum_amount: String, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum ... # end # ``` @@ -781,9 +806,7 @@ class AllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -863,9 +886,7 @@ class Discount < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType] required :discount_type, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -931,41 +952,131 @@ class DiscountType < Orb::Enum # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig} + # in { + # model_type: "matrix", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence, + # item_id: String, + # matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice ... - # in {model_type: "tiered", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence, item_id: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice ... # end # ``` @@ -1085,9 +1196,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1132,9 +1241,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1175,9 +1282,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1314,9 +1419,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1374,9 +1477,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1433,9 +1534,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1480,9 +1579,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1523,9 +1620,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1671,9 +1766,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -1731,9 +1824,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1790,9 +1881,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -1837,9 +1926,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1880,9 +1967,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1984,7 +2069,11 @@ class Cadence < Orb::Enum # matrix_config => { # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixConfig < Orb::BaseModel @@ -2005,9 +2094,11 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + end # @!parse # # @param default_unit_amount [String] @@ -2069,9 +2160,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2129,9 +2218,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2188,9 +2275,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -2235,9 +2320,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2278,9 +2361,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2380,7 +2461,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + # ] === _1 + # end # } # ``` class TieredConfig < Orb::BaseModel @@ -2389,9 +2474,11 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -2457,9 +2544,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2517,9 +2602,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2576,9 +2659,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -2623,9 +2704,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2666,9 +2745,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2768,7 +2845,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + # ] === _1 + # end # } # ``` class TieredBpsConfig < Orb::BaseModel @@ -2778,9 +2859,11 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -2854,9 +2937,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -2914,9 +2995,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2979,9 +3058,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3020,9 +3097,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3063,9 +3138,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3210,9 +3283,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3270,9 +3341,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3335,9 +3404,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3376,9 +3443,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3419,9 +3484,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3484,7 +3547,11 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # @example # ```ruby # bulk_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + # ] === _1 + # end # } # ``` class BulkBpsConfig < Orb::BaseModel @@ -3494,9 +3561,11 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -3599,9 +3668,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -3659,9 +3726,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3724,9 +3789,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -3765,9 +3828,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3808,9 +3869,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3873,7 +3932,11 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # @example # ```ruby # bulk_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + # ] === _1 + # end # } # ``` class BulkConfig < Orb::BaseModel @@ -3882,9 +3945,11 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -3979,9 +4044,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4039,9 +4102,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4098,9 +4159,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4144,9 +4203,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4187,9 +4244,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4305,9 +4360,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4365,9 +4418,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4424,9 +4475,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4470,9 +4519,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4513,9 +4560,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4631,9 +4676,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -4691,9 +4734,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4750,9 +4791,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -4796,9 +4835,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4839,9 +4876,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4957,9 +4992,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5017,9 +5050,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5076,9 +5107,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5122,9 +5151,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5165,9 +5192,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5283,9 +5308,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5343,9 +5366,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5402,9 +5423,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5448,9 +5467,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5491,9 +5508,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5609,9 +5624,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5669,9 +5682,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5728,9 +5739,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -5774,9 +5783,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5817,9 +5824,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5935,9 +5940,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -5995,9 +5998,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6054,9 +6055,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -6100,9 +6099,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6143,9 +6140,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6261,9 +6256,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6321,9 +6314,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6380,9 +6371,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config # @@ -6426,9 +6415,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6469,9 +6456,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6587,9 +6572,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6647,9 +6630,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6706,9 +6687,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -6752,9 +6731,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6795,9 +6772,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6913,9 +6888,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -6973,9 +6946,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7037,9 +7008,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -7078,9 +7047,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -7121,9 +7088,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -7239,9 +7204,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -7299,9 +7262,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7479,9 +7440,7 @@ class ReplaceAdjustment < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum] required :adjustment, - union: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment - } + union: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment } # @!attribute replaces_adjustment_id # The id of the adjustment on the plan to replace in the subscription. @@ -7504,15 +7463,40 @@ class ReplaceAdjustment < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "percentage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, percentage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # percentage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount ... - # in {adjustment_type: "usage_discount", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, usage_discount: Float, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # usage_discount: Float, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount ... - # in {adjustment_type: "amount_discount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "amount_discount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount ... - # in {adjustment_type: "minimum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, item_id: String, minimum_amount: String} + # in { + # adjustment_type: "minimum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # item_id: String, + # minimum_amount: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum ... - # in {adjustment_type: "maximum", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, maximum_amount: String, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # maximum_amount: String, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum ... # end # ``` @@ -7840,9 +7824,7 @@ class ReplacePrice < Orb::BaseModel # # @return [Array, nil] optional :discounts, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount] }, nil?: true # @!attribute external_price_id @@ -7934,9 +7916,7 @@ class AllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -8016,9 +7996,7 @@ class Discount < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType] required :discount_type, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -8084,41 +8062,131 @@ class DiscountType < Orb::Enum # @example # ```ruby # case price - # in {model_type: "unit", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice ... - # in {model_type: "package", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice ... - # in {model_type: "matrix", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig} + # in { + # model_type: "matrix", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence, + # item_id: String, + # matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice ... - # in {model_type: "tiered", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice ... - # in {model_type: "tiered_bps", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_bps", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice ... - # in {model_type: "bps", bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bps", + # bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice ... - # in {model_type: "bulk_bps", bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_bps", + # bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice ... - # in {model_type: "bulk", bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence, item_id: String} + # in { + # model_type: "bulk", + # bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice ... - # in {model_type: "threshold_total_amount", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "threshold_total_amount", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice ... - # in {model_type: "tiered_package", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_package", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice ... - # in {model_type: "tiered_with_minimum", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_minimum", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice ... - # in {model_type: "unit_with_percent", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_percent", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice ... - # in {model_type: "package_with_allocation", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "package_with_allocation", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice ... - # in {model_type: "tiered_with_proration", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "tiered_with_proration", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice ... - # in {model_type: "unit_with_proration", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, item_id: String, name: String} + # in { + # model_type: "unit_with_proration", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence, + # item_id: String, + # name: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice ... - # in {model_type: "grouped_allocation", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_allocation", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence, + # grouped_allocation_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice ... - # in {model_type: "grouped_with_prorated_minimum", cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, item_id: String} + # in { + # model_type: "grouped_with_prorated_minimum", + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence, + # grouped_with_prorated_minimum_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice ... - # in {model_type: "bulk_with_proration", bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, item_id: String} + # in { + # model_type: "bulk_with_proration", + # bulk_with_proration_config: -> { Orb::HashOf[Orb::Unknown] === _1 }, + # cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence, + # item_id: String + # } # # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ... # end # ``` @@ -8238,9 +8306,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -8285,9 +8351,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8328,9 +8392,7 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8467,9 +8529,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8527,9 +8587,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8586,9 +8644,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -8633,9 +8689,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -8676,9 +8730,7 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -8824,9 +8876,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -8884,9 +8934,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8943,9 +8991,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -8990,9 +9036,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9033,9 +9077,7 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9137,7 +9179,11 @@ class Cadence < Orb::Enum # matrix_config => { # default_unit_amount: String, # dimensions: -> { Orb::ArrayOf[String, nil?: true] === _1 }, - # matrix_values: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] === _1 } + # matrix_values: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + # ] === _1 + # end # } # ``` class MatrixConfig < Orb::BaseModel @@ -9158,9 +9204,11 @@ class MatrixConfig < Orb::BaseModel # # @return [Array] required :matrix_values, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + end # @!parse # # @param default_unit_amount [String] @@ -9222,9 +9270,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9282,9 +9328,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9341,9 +9385,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -9388,9 +9430,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9431,9 +9471,7 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9533,7 +9571,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + # ] === _1 + # end # } # ``` class TieredConfig < Orb::BaseModel @@ -9542,9 +9584,11 @@ class TieredConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -9610,9 +9654,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -9670,9 +9712,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9729,9 +9769,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -9776,9 +9814,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -9819,9 +9855,7 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -9921,7 +9955,11 @@ class Cadence < Orb::Enum # @example # ```ruby # tiered_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + # ] === _1 + # end # } # ``` class TieredBpsConfig < Orb::BaseModel @@ -9931,9 +9969,11 @@ class TieredBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -10007,9 +10047,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10067,9 +10105,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10132,9 +10168,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10173,9 +10207,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10216,9 +10248,7 @@ class NewSubscriptionBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -10363,9 +10393,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10423,9 +10451,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10488,9 +10514,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10529,9 +10553,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10572,9 +10594,7 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -10637,7 +10657,11 @@ class NewSubscriptionBulkBpsPrice < Orb::BaseModel # @example # ```ruby # bulk_bps_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + # ] === _1 + # end # } # ``` class BulkBpsConfig < Orb::BaseModel @@ -10647,9 +10671,11 @@ class BulkBpsConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -10752,9 +10778,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -10812,9 +10836,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10877,9 +10899,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -10918,9 +10938,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -10961,9 +10979,7 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11026,7 +11042,11 @@ class NewSubscriptionBulkPrice < Orb::BaseModel # @example # ```ruby # bulk_config => { - # tiers: -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] === _1 } + # tiers: -> do + # Orb::ArrayOf[ + # Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + # ] === _1 + # end # } # ``` class BulkConfig < Orb::BaseModel @@ -11035,9 +11055,11 @@ class BulkConfig < Orb::BaseModel # # @return [Array] required :tiers, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - } + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + end # @!parse # # @param tiers [Array] @@ -11132,9 +11154,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11192,9 +11212,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11251,9 +11269,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11297,9 +11313,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -11340,9 +11354,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11458,9 +11470,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11518,9 +11528,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11577,9 +11585,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11623,9 +11629,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -11666,9 +11670,7 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -11784,9 +11786,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -11844,9 +11844,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11903,9 +11901,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -11949,9 +11945,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -11992,9 +11986,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12110,9 +12102,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12170,9 +12160,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12229,9 +12217,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12275,9 +12261,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12318,9 +12302,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12436,9 +12418,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12496,9 +12476,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12555,9 +12533,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12601,9 +12577,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12644,9 +12618,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -12762,9 +12734,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -12822,9 +12792,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12881,9 +12849,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -12927,9 +12893,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -12970,9 +12934,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13088,9 +13050,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13148,9 +13108,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13207,9 +13165,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -13253,9 +13209,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13296,9 +13250,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13414,9 +13366,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13474,9 +13424,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13533,9 +13481,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config # @@ -13579,9 +13525,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13622,9 +13566,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -13740,9 +13682,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -13800,9 +13740,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13859,9 +13797,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -13905,9 +13841,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -13948,9 +13882,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -14066,9 +13998,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -14126,9 +14056,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14190,9 +14118,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence] required :cadence, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence } # @!attribute item_id # The id of the item the plan will be associated with. @@ -14231,9 +14157,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -14274,9 +14198,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - }, + -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -14392,9 +14314,7 @@ class BillingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit } # @!parse # # For custom cadence: specifies the duration of the billing period in days or @@ -14452,9 +14372,7 @@ class InvoicingCycleConfiguration < Orb::BaseModel # # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit - } + enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit } # @!parse # # Within each billing cycle, specifies the cadence at which invoices are produced. diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index 1ced6f67..d9a036b5 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -112,9 +112,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel # # @return [Array] required :discount_intervals, - -> { - Orb::ArrayOf[union: Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval] - } + -> { Orb::ArrayOf[union: Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -126,9 +124,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel # # @return [Array] required :fixed_fee_quantity_schedule, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -286,9 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # # @return [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] required :adjustment, - union: -> { - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment - } + union: -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -324,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -823,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1266,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index c693a555..6e96e28f 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -318,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -817,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1260,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index 9680fe54..1f1bb4b2 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -31,9 +31,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel # # @return [Array] required :adjustment_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval] } # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -114,9 +112,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel # # @return [Array] required :discount_intervals, - -> { - Orb::ArrayOf[union: Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval] - } + -> { Orb::ArrayOf[union: Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -128,9 +124,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel # # @return [Array] required :fixed_fee_quantity_schedule, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -288,9 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # # @return [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] required :adjustment, - union: -> { - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment - } + union: -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -326,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -825,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1268,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb index accfe35c..502def73 100644 --- a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +++ b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb @@ -31,9 +31,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :adjustment_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] } # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -114,9 +112,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :discount_intervals, - -> { - Orb::ArrayOf[union: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval] - } + -> { Orb::ArrayOf[union: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -128,9 +124,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :fixed_fee_quantity_schedule, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -142,9 +136,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :maximum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval] } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -160,9 +152,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :minimum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -187,9 +177,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # # @return [Array] required :price_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval] } # @!attribute redeemed_coupon # @@ -207,18 +195,12 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel # @!attribute status # # @return [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status] - required :status, - enum: -> { - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status - } + required :status, enum: -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status } # @!attribute trial_info # # @return [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo] - required :trial_info, - -> { - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - } + required :trial_info, -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo } # @!parse # # @param id [String] @@ -300,9 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # # @return [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] required :adjustment, - union: -> { - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment - } + union: -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -338,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -837,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1280,9 +1300,11 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> do + Orb::ArrayOf[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] + end, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb index 33401beb..a43a0acd 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -31,9 +31,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :adjustment_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval] } # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -114,9 +112,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :discount_intervals, - -> { - Orb::ArrayOf[union: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval] - } + -> { Orb::ArrayOf[union: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -128,9 +124,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :fixed_fee_quantity_schedule, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -142,9 +136,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :maximum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval] } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -160,9 +152,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :minimum_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -187,9 +177,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel # # @return [Array] required :price_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval] } # @!attribute redeemed_coupon # @@ -294,9 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # # @return [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] required :adjustment, - union: -> { - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment - } + union: -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -332,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -831,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1274,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb index 6ae2ef46..76053fab 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -32,10 +32,7 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel # `immediate` unless it's explicitly set to `upcoming_invoice. # # @return [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption, nil] - optional :change_option, - enum: -> { - Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption - } + optional :change_option, enum: -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption } # @!parse # # @return [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] diff --git a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb index 08c72fcf..623c4e78 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -31,9 +31,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel # # @return [Array] required :adjustment_intervals, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval] } # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -114,9 +112,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel # # @return [Array] required :discount_intervals, - -> { - Orb::ArrayOf[union: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval] - } + -> { Orb::ArrayOf[union: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -128,9 +124,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel # # @return [Array] required :fixed_fee_quantity_schedule, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -288,9 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # # @return [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] required :adjustment, - union: -> { - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment - } + union: -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -326,15 +318,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -825,11 +842,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1268,9 +1300,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 6b63f8d5..78ad3534 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -182,11 +182,7 @@ class SubscriptionUpdateTrialResponse < Orb::BaseModel # @!attribute redeemed_coupon # # @return [Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, nil] - required :redeemed_coupon, - -> { - Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon - }, - nil?: true + required :redeemed_coupon, -> { Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon }, nil?: true # @!attribute start_date # The date Orb starts billing for this subscription. @@ -320,15 +316,40 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "usage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # adjustment_type: "amount_discount", + # id: String, + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "percentage_discount", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "minimum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # in { + # adjustment_type: "maximum", + # id: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # is_invoice_level: Orb::BooleanModel + # } # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` @@ -819,11 +840,26 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # @example # ```ruby # case discount_interval - # in {discount_type: "amount", amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }} + # in { + # discount_type: "amount", + # amount_discount: String, + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 } + # } # # Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval ... - # in {discount_type: "percentage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "percentage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval ... - # in {discount_type: "usage", applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, end_date: Time} + # in { + # discount_type: "usage", + # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, + # applies_to_price_interval_ids: -> { Orb::ArrayOf[String] === _1 }, + # end_date: Time + # } # # Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval ... # end # ``` @@ -1262,9 +1298,7 @@ class PriceInterval < Orb::BaseModel # # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - }, + -> { Orb::ArrayOf[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] }, nil?: true # @!attribute price diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index 1a07379d..78df4bfb 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -56,9 +56,7 @@ class Data < Orb::BaseModel # # @return [Array] required :usage, - -> { - Orb::ArrayOf[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] - } + -> { Orb::ArrayOf[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] } # @!attribute view_mode # @@ -206,10 +204,7 @@ class Data < Orb::BaseModel # @!attribute metric_group # # @return [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup] - required :metric_group, - -> { - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup - } + required :metric_group, -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup } # @!attribute usage # @@ -220,10 +215,7 @@ class Data < Orb::BaseModel # @!attribute view_mode # # @return [Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode] - required :view_mode, - enum: -> { - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode - } + required :view_mode, enum: -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode } # @!parse # # @param billable_metric [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric] diff --git a/lib/orb/page.rb b/lib/orb/page.rb index 24563e64..eb46bc87 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -30,6 +30,7 @@ class Page # @return [PaginationMetadata] attr_accessor :pagination_metadata + # rubocop:disable Lint/UnusedMethodArgument # @private # # @param client [Orb::BaseClient] @@ -54,6 +55,7 @@ def initialize(client:, req:, headers:, unwrapped:) else end end + # rubocop:enable Lint/UnusedMethodArgument # @return [Boolean] # @@ -66,7 +68,7 @@ def next_page? # def next_page unless next_page? - raise "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 #next_page") end req = Orb::Util.deep_merge(@req, {query: {cursor: pagination_metadata&.next_cursor}}) diff --git a/lib/orb/resources/events.rb b/lib/orb/resources/events.rb index eb55655f..b5ecd52e 100644 --- a/lib/orb/resources/events.rb +++ b/lib/orb/resources/events.rb @@ -230,6 +230,8 @@ def deprecate(event_id, params = {}) # flexible query engine to determine usage. # - Logging a region or cluster with each event can help you provide customers # more granular visibility into their usage. + # - If you are using matrix pricing and matching a matrix price key with a + # property, you should ensure the value for that property is sent as a string. # # We encourage logging this metadata with an eye towards future use cases to # ensure full coverage for historical data. The datatype of the value in the diff --git a/lib/orb/resources/items.rb b/lib/orb/resources/items.rb index a1ae12c2..ec8ab50f 100644 --- a/lib/orb/resources/items.rb +++ b/lib/orb/resources/items.rb @@ -15,13 +15,7 @@ class Items # def create(params) parsed, options = Orb::Models::ItemCreateParams.dump_request(params) - @client.request( - method: :post, - path: "items", - body: parsed, - model: Orb::Models::Item, - options: options - ) + @client.request(method: :post, path: "items", body: parsed, model: Orb::Models::Item, options: options) end # This endpoint can be used to update properties on the Item. diff --git a/lib/orb/resources/plans.rb b/lib/orb/resources/plans.rb index 3c1440ba..bd1b47a1 100644 --- a/lib/orb/resources/plans.rb +++ b/lib/orb/resources/plans.rb @@ -39,13 +39,7 @@ class Plans # def create(params) parsed, options = Orb::Models::PlanCreateParams.dump_request(params) - @client.request( - method: :post, - path: "plans", - body: parsed, - model: Orb::Models::Plan, - options: options - ) + @client.request(method: :post, path: "plans", body: parsed, model: Orb::Models::Plan, options: options) end # This endpoint can be used to update the `external_plan_id`, and `metadata` of an diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index da62af77..aa3d9f16 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -116,13 +116,7 @@ class Prices # def create(params) parsed, options = Orb::Models::PriceCreateParams.dump_request(params) - @client.request( - method: :post, - path: "prices", - body: parsed, - model: Orb::Models::Price, - options: options - ) + @client.request(method: :post, path: "prices", body: parsed, model: Orb::Models::Price, options: options) end # This endpoint allows you to update the `metadata` property on a price. If you diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 4ca5cfb9..1867824a 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.9" + VERSION = "0.1.0-alpha.10" end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 895b3654..726bd5b9 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -4,7 +4,7 @@ module Orb class BaseClient abstract! - RequestShape = T.type_alias do + RequestComponentsShape = T.type_alias do { method: Symbol, path: T.any(String, T::Array[String]), @@ -18,7 +18,7 @@ module Orb } end - NormalizedRequestShape = T.type_alias do + RequestInputShape = T.type_alias do { method: Symbol, url: URI::Generic, @@ -31,7 +31,7 @@ module Orb MAX_REDIRECTS = 20 - sig { params(req: Orb::BaseClient::RequestShape).void } + sig { params(req: Orb::BaseClient::RequestComponentsShape).void } def self.validate!(req) end @@ -52,7 +52,8 @@ module Orb max_retry_delay: Float, headers: T::Hash[String, T.nilable(String)], idempotency_header: T.nilable(String) - ).void + ) + .void end def initialize( base_url:, @@ -74,10 +75,8 @@ module Orb end sig do - params( - req: Orb::BaseClient::RequestShape, - opts: T::Hash[Symbol, T.anything] - ).returns(Orb::BaseClient::NormalizedRequestShape) + params(req: Orb::BaseClient::RequestComponentsShape, opts: T::Hash[Symbol, T.anything]) + .returns(Orb::BaseClient::RequestInputShape) end private def build_request(req, opts) end @@ -91,27 +90,25 @@ module Orb end sig do - params( - request: Orb::BaseClient::NormalizedRequestShape, - status: Integer, - location_header: String - ).returns(Orb::BaseClient::NormalizedRequestShape) + params(request: Orb::BaseClient::RequestInputShape, status: Integer, location_header: String) + .returns(Orb::BaseClient::RequestInputShape) end private def follow_redirect(request, status:, location_header:) end sig do params( - request: Orb::BaseClient::NormalizedRequestShape, + request: Orb::BaseClient::RequestInputShape, redirect_count: Integer, retry_count: Integer, send_retry_header: T::Boolean - ).returns(Net::HTTPResponse) + ) + .returns(Net::HTTPResponse) end private def send_request(request, redirect_count:, retry_count:, send_retry_header:) end - sig { params(req: Orb::BaseClient::RequestShape, response: NilClass).returns(T.anything) } + sig { params(req: Orb::BaseClient::RequestComponentsShape, response: NilClass).returns(T.anything) } private def parse_response(req, response) end @@ -126,7 +123,8 @@ module Orb page: T.nilable(T::Class[Orb::BaseModel]), model: T.nilable(Orb::Converter::Input), options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(T.anything) + ) + .returns(T.anything) end def request( method, diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index ade9e0a2..49e91805 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -15,12 +15,9 @@ module Orb end sig do - overridable.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + overridable + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def try_strict_coerce(value) end @@ -36,7 +33,8 @@ module Orb T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ) - ).returns(T.proc.returns(T.anything).void) + ) + .returns(T.proc.returns(T.anything).void) end def self.type_info(spec) end @@ -76,12 +74,9 @@ module Orb end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def self.try_strict_coerce(value) end @@ -109,12 +104,9 @@ module Orb end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def self.try_strict_coerce(value) end @@ -150,12 +142,9 @@ module Orb end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def self.try_strict_coerce(value) end @@ -187,8 +176,13 @@ module Orb T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T.any(T::Hash[Symbol, T.anything], T.proc.returns(Orb::Converter::Input), Orb::Converter::Input) - ).void + spec: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ) + ) + .void end private_class_method def self.variant(key, spec = nil) end @@ -214,12 +208,9 @@ module Orb end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def self.try_strict_coerce(value) end @@ -239,34 +230,25 @@ module Orb end sig do - override.params( - value: T.any( - T::Enumerable[T.anything], - T.anything - ) - ).returns(T.any(T::Array[T.anything], T.anything)) + override + .params(value: T.any(T::Enumerable[T.anything], T.anything)) + .returns(T.any(T::Array[T.anything], T.anything)) end def coerce(value) end sig do - override.params( - value: T.any( - T::Enumerable[T.anything], - T.anything - ) - ).returns(T.any(T::Array[T.anything], T.anything)) + override + .params(value: T.any(T::Enumerable[T.anything], T.anything)) + .returns(T.any(T::Array[T.anything], T.anything)) end def dump(value) end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def try_strict_coerce(value) end @@ -283,7 +265,8 @@ module Orb Orb::Converter::Input ), spec: T::Hash[Symbol, T.anything] - ).void + ) + .void end def initialize(type_info, spec = {}) end @@ -303,34 +286,25 @@ module Orb end sig do - override.params( - value: T.any( - T::Hash[T.anything, T.anything], - T.anything - ) - ).returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + override + .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) + .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) end def coerce(value) end sig do - override.params( - value: T.any( - T::Hash[T.anything, T.anything], - T.anything - ) - ).returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + override + .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) + .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) end def dump(value) end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def try_strict_coerce(value) end @@ -347,7 +321,8 @@ module Orb Orb::Converter::Input ), spec: T::Hash[Symbol, T.anything] - ).void + ) + .void end def initialize(type_info, spec = {}) end @@ -394,7 +369,8 @@ module Orb Orb::Converter::Input ), spec: T::Hash[Symbol, T.anything] - ).void + ) + .void end private_class_method def self.add_field(name_sym, required:, type_info:, spec:) end @@ -408,7 +384,8 @@ module Orb Orb::Converter::Input ), spec: T::Hash[Symbol, T.anything] - ).void + ) + .void end def self.required(name_sym, type_info, spec = {}) end @@ -422,7 +399,8 @@ module Orb Orb::Converter::Input ), spec: T::Hash[Symbol, T.anything] - ).void + ) + .void end def self.optional(name_sym, type_info, spec = {}) end @@ -440,35 +418,25 @@ module Orb end sig do - override.params( - value: T.any( - Orb::BaseModel, - T::Hash[T.anything, T.anything], - T.anything - ) - ).returns(T.any(T.attached_class, T.anything)) + override + .params(value: T.any(Orb::BaseModel, T::Hash[T.anything, T.anything], T.anything)) + .returns(T.any(T.attached_class, T.anything)) end def self.coerce(value) end sig do - override.params( - value: T.any( - T.attached_class, - T.anything - ) - ).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) + override + .params(value: T.any(T.attached_class, T.anything)) + .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) end def self.dump(value) end sig do - override.params(value: T.anything).returns( - T.any( - [T::Boolean, T.anything, NilClass], - [T::Boolean, T::Boolean, Integer] - ) - ) + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) end def self.try_strict_coerce(value) end diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi index 66999730..977f31d9 100644 --- a/rbi/lib/orb/base_page.rbi +++ b/rbi/lib/orb/base_page.rbi @@ -27,10 +27,11 @@ module Orb sig do params( client: Orb::BaseClient, - req: Orb::BaseClient::RequestShape, + req: Orb::BaseClient::RequestComponentsShape, headers: T::Hash[String, String], unwrapped: T.anything - ).void + ) + .void end def initialize(client:, req:, headers:, unwrapped:) end diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index 2b6b5098..6aa6e4ec 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -83,7 +83,8 @@ module Orb initial_retry_delay: Float, max_retry_delay: Float, idempotency_header: String - ).void + ) + .void end def initialize( base_url: nil, diff --git a/rbi/lib/orb/errors.rbi b/rbi/lib/orb/errors.rbi index 770aef4b..fdae3527 100644 --- a/rbi/lib/orb/errors.rbi +++ b/rbi/lib/orb/errors.rbi @@ -31,7 +31,8 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ).void + ) + .void end def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil) end @@ -54,7 +55,8 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ).void + ) + .void end def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") end @@ -69,7 +71,8 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ).void + ) + .void end def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Request timed out.") end @@ -83,7 +86,8 @@ module Orb body: T.nilable(Object), request: NilClass, response: NilClass - ).returns(T.attached_class) + ) + .returns(T.attached_class) end def self.for(url:, status:, body:, request:, response:) end @@ -100,7 +104,8 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ).void + ) + .void end def initialize(url:, status:, body:, request:, response:, message: nil) end @@ -138,49 +143,49 @@ module Orb HTTP_STATUS = T.let((500..), T::Range[Integer]) end - class ConstraintViolation < Orb::APIStatusError + class ConstraintViolation < Orb::BadRequestError HTTP_STATUS = 400 TYPE = "https://docs.withorb.com/reference/error-responses#400-constraint-violation" end - class DuplicateResourceCreation < Orb::APIStatusError + class DuplicateResourceCreation < Orb::BadRequestError HTTP_STATUS = 400 TYPE = "https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation" end - class FeatureNotAvailable < Orb::APIStatusError + class FeatureNotAvailable < Orb::BadRequestError HTTP_STATUS = 400 TYPE = "https://docs.withorb.com/reference/error-responses#404-feature-not-available" end - class RequestValidationError < Orb::APIStatusError + class RequestValidationError < Orb::BadRequestError HTTP_STATUS = 400 TYPE = "https://docs.withorb.com/reference/error-responses#400-request-validation-errors" end - class OrbAuthenticationError < Orb::APIStatusError + class OrbAuthenticationError < Orb::AuthenticationError HTTP_STATUS = 401 TYPE = "https://docs.withorb.com/reference/error-responses#401-authentication-error" end - class ResourceNotFound < Orb::APIStatusError + class ResourceNotFound < Orb::NotFoundError HTTP_STATUS = 404 TYPE = "https://docs.withorb.com/reference/error-responses#404-resource-not-found" end - class URLNotFound < Orb::APIStatusError + class URLNotFound < Orb::NotFoundError HTTP_STATUS = 404 TYPE = "https://docs.withorb.com/reference/error-responses#404-url-not-found" end - class ResourceConflict < Orb::APIStatusError + class ResourceConflict < Orb::ConflictError HTTP_STATUS = 409 TYPE = "https://docs.withorb.com/reference/error-responses#409-resource-conflict" @@ -198,14 +203,14 @@ module Orb TYPE = "https://docs.withorb.com/reference/error-responses#413-resource-too-large" end - class TooManyRequests < Orb::APIStatusError + class TooManyRequests < Orb::RateLimitError HTTP_STATUS = 429 TYPE = "https://docs.withorb.com/reference/error-responses#429-too-many-requests" end - class OrbInternalServerError < Orb::APIStatusError - HTTP_STATUS = 500 + class OrbInternalServerError < Orb::InternalServerError + HTTP_STATUS = T.let((500..), T::Range[Integer]) TYPE = "https://docs.withorb.com/reference/error-responses#500-internal-server-error" end diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index cb97e9a0..9f40a733 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -31,9 +31,7 @@ module Orb def customer end - sig do - params(_: T.nilable(Orb::Models::Alert::Customer)).returns(T.nilable(Orb::Models::Alert::Customer)) - end + sig { params(_: T.nilable(Orb::Models::Alert::Customer)).returns(T.nilable(Orb::Models::Alert::Customer)) } def customer=(_) end @@ -76,7 +74,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::Alert::Threshold])).returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) + params(_: T.nilable(T::Array[Orb::Models::Alert::Threshold])) + .returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) end def thresholds=(_) end @@ -101,7 +100,8 @@ module Orb subscription: T.nilable(Orb::Models::Alert::Subscription), thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), type: Symbol - ).void + ) + .void end def initialize( id:, @@ -118,20 +118,21 @@ module Orb end sig do - override.returns( - { - id: String, - created_at: Time, - currency: T.nilable(String), - customer: T.nilable(Orb::Models::Alert::Customer), - enabled: T::Boolean, - metric: T.nilable(Orb::Models::Alert::Metric), - plan: T.nilable(Orb::Models::Alert::Plan), - subscription: T.nilable(Orb::Models::Alert::Subscription), - thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), - type: Symbol - } - ) + override + .returns( + { + id: String, + created_at: Time, + currency: T.nilable(String), + customer: T.nilable(Orb::Models::Alert::Customer), + enabled: T::Boolean, + metric: T.nilable(Orb::Models::Alert::Metric), + plan: T.nilable(Orb::Models::Alert::Plan), + subscription: T.nilable(Orb::Models::Alert::Subscription), + thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), + type: Symbol + } + ) end def to_hash end @@ -219,20 +220,22 @@ module Orb external_plan_id: T.nilable(String), name: T.nilable(String), plan_version: String - ).void + ) + .void end def initialize(id:, external_plan_id:, name:, plan_version:) end sig do - override.returns( - { - id: T.nilable(String), - external_plan_id: T.nilable(String), - name: T.nilable(String), - plan_version: String - } - ) + override + .returns( + { + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String), + plan_version: String + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/alert_create_for_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_customer_params.rbi index 166f494d..6bf3ced1 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -27,7 +27,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])).returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) + params(_: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) + .returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) end def thresholds=(_) end @@ -38,20 +39,22 @@ module Orb type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(currency:, type:, thresholds: nil, request_options: {}) end sig do - override.returns( - { - currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: String, + type: Symbol, + thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi index d9c0dd20..aff1d219 100644 --- a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi @@ -27,7 +27,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])).returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) + params(_: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) + .returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) end def thresholds=(_) end @@ -38,20 +39,22 @@ module Orb type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(currency:, type:, thresholds: nil, request_options: {}) end sig do - override.returns( - { - currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: String, + type: Symbol, + thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi index 2660ea15..a5e364b1 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]).returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) + params(_: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) + .returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) end def thresholds=(_) end @@ -38,20 +39,22 @@ module Orb type: Symbol, metric_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(thresholds:, type:, metric_id: nil, request_options: {}) end sig do - override.returns( - { - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, - metric_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + type: Symbol, + metric_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index b0f0a66f..2d12c93f 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -18,7 +18,8 @@ module Orb params( subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(subscription_id: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index 1fbc5b53..e250944e 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -18,7 +18,8 @@ module Orb params( subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(subscription_id: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index 88bb4695..248c4380 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -90,7 +90,8 @@ module Orb limit: Integer, subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -107,20 +108,21 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - limit: Integer, - subscription_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + limit: Integer, + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index f7601f1a..38cf1879 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::AlertUpdateParams::Threshold]).returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) + params(_: T::Array[Orb::Models::AlertUpdateParams::Threshold]) + .returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) end def thresholds=(_) end @@ -20,18 +21,17 @@ module Orb params( thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(thresholds:, request_options: {}) end sig do - override.returns( - { - thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::RequestOptions - } - ) + override + .returns( + {thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: Orb::RequestOptions} + ) end def to_hash end diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index 7e53f82a..62f1165d 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -41,20 +41,22 @@ module Orb applies_to_price_ids: T::Array[String], discount_type: Symbol, reason: T.nilable(String) - ).void + ) + .void end def initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil) end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - reason: T.nilable(String) - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + reason: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index 4c486156..4dc58f51 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -59,22 +59,24 @@ module Orb metadata: T::Hash[Symbol, String], name: String, status: Symbol - ).void + ) + .void end def initialize(id:, description:, item:, metadata:, name:, status:) end sig do - override.returns( - { - id: String, - description: T.nilable(String), - item: Orb::Models::Item, - metadata: T::Hash[Symbol, String], - name: String, - status: Symbol - } - ) + override + .returns( + { + id: String, + description: T.nilable(String), + item: Orb::Models::Item, + metadata: T::Hash[Symbol, String], + name: String, + status: Symbol + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index ef2563ba..6f867f43 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -24,15 +24,8 @@ module Orb end sig do - params( - _: T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount - ) - ).returns(T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount - )) + params(_: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) + .returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) end def discount=(_) end @@ -78,7 +71,8 @@ module Orb max_redemptions: T.nilable(Integer), redemption_code: String, times_redeemed: Integer - ).void + ) + .void end def initialize( id:, @@ -92,17 +86,18 @@ module Orb end sig do - override.returns( - { - id: String, - archived_at: T.nilable(Time), - discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer), - redemption_code: String, - times_redeemed: Integer - } - ) + override + .returns( + { + id: String, + archived_at: T.nilable(Time), + discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + redemption_code: String, + times_redeemed: Integer + } + ) end def to_hash end @@ -110,9 +105,7 @@ module Orb class Discount < Orb::Union abstract! - sig do - override.returns([[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount]]) - end + sig { override.returns([[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount]]) } private_class_method def self.variants end end diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 724a1638..92d08bd9 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -23,10 +23,13 @@ module Orb Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount ) - ).returns(T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - )) + ) + .returns( + T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ) + ) end def discount=(_) end @@ -65,7 +68,8 @@ module Orb duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( discount:, @@ -77,18 +81,19 @@ module Orb end sig do - override.returns( - { - discount: T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ), - redemption_code: String, - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + discount: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ), + redemption_code: String, + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -149,12 +154,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount], - [Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] - ] - ) + override + .returns( + [[Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount], [Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index a89a0c76..edf2682d 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -45,21 +45,23 @@ module Orb redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) end sig do - override.returns( - { - cursor: T.nilable(String), - limit: Integer, - redemption_code: T.nilable(String), - show_archived: T.nilable(T::Boolean), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + cursor: T.nilable(String), + limit: Integer, + redemption_code: T.nilable(String), + show_archived: T.nilable(T::Boolean), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index b279c85e..449a84a0 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -28,7 +28,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index 9aa5f087..0333d001 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -66,7 +66,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)).returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) + params(_: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) + .returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) end def maximum_amount_adjustment=(_) end @@ -155,7 +156,8 @@ module Orb type: Symbol, voided_at: T.nilable(Time), discounts: T::Array[Orb::Models::CreditNote::Discount] - ).void + ) + .void end def initialize( id:, @@ -178,26 +180,27 @@ module Orb end sig do - override.returns( - { - id: String, - created_at: Time, - credit_note_number: String, - credit_note_pdf: T.nilable(String), - customer: Orb::Models::CreditNote::Customer, - invoice_id: String, - line_items: T::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), - memo: T.nilable(String), - minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), - subtotal: String, - total: String, - type: Symbol, - voided_at: T.nilable(Time), - discounts: T::Array[Orb::Models::CreditNote::Discount] - } - ) + override + .returns( + { + id: String, + created_at: Time, + credit_note_number: String, + credit_note_pdf: T.nilable(String), + customer: Orb::Models::CreditNote::Customer, + invoice_id: String, + line_items: T::Array[Orb::Models::CreditNote::LineItem], + maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), + memo: T.nilable(String), + minimum_amount_refunded: T.nilable(String), + reason: T.nilable(Symbol), + subtotal: String, + total: String, + type: Symbol, + voided_at: T.nilable(Time), + discounts: T::Array[Orb::Models::CreditNote::Discount] + } + ) end def to_hash end @@ -274,7 +277,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]).returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) + params(_: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) + .returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) end def tax_amounts=(_) end @@ -284,7 +288,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::Discount]).returns(T::Array[Orb::Models::CreditNote::LineItem::Discount]) + params(_: T::Array[Orb::Models::CreditNote::LineItem::Discount]) + .returns(T::Array[Orb::Models::CreditNote::LineItem::Discount]) end def discounts=(_) end @@ -298,23 +303,25 @@ module Orb subtotal: String, tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] - ).void + ) + .void end def initialize(id:, amount:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil) end sig do - override.returns( - { - id: String, - amount: String, - name: String, - quantity: T.nilable(Float), - subtotal: String, - tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] - } - ) + override + .returns( + { + id: String, + amount: String, + name: String, + quantity: T.nilable(Float), + subtotal: String, + tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] + } + ) end def to_hash end @@ -429,7 +436,8 @@ module Orb percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -443,17 +451,18 @@ module Orb end sig do - override.returns( - { - id: String, - amount_applied: String, - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - percentage_discount: Float, - amount_discount: T.nilable(String), - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount_applied: String, + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + percentage_discount: Float, + amount_discount: T.nilable(String), + reason: T.nilable(String) + } + ) end def to_hash end @@ -501,7 +510,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])).returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) + params(_: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) + .returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) end def applies_to_prices=(_) end @@ -521,7 +531,8 @@ module Orb percentage_discount: Float, applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), reason: T.nilable(String) - ).void + ) + .void end def initialize( amount_applied:, @@ -533,15 +544,16 @@ module Orb end sig do - override.returns( - { - amount_applied: String, - discount_type: Symbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), - reason: T.nilable(String) - } - ) + override + .returns( + { + amount_applied: String, + discount_type: Symbol, + percentage_discount: Float, + applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), + reason: T.nilable(String) + } + ) end def to_hash end @@ -637,7 +649,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])).returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) + params(_: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) + .returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) end def applies_to_prices=(_) end @@ -657,7 +670,8 @@ module Orb percentage_discount: Float, applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), reason: T.nilable(String) - ).void + ) + .void end def initialize( amount_applied:, @@ -669,15 +683,16 @@ module Orb end sig do - override.returns( - { - amount_applied: String, - discount_type: Symbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), - reason: T.nilable(String) - } - ) + override + .returns( + { + amount_applied: String, + discount_type: Symbol, + percentage_discount: Float, + applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), + reason: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index ae7dfd88..3118859e 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::CreditNoteCreateParams::LineItem]).returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) + params(_: T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) + .returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) end def line_items=(_) end @@ -38,20 +39,22 @@ module Orb memo: T.nilable(String), reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(line_items:, memo: nil, reason: nil, request_options: {}) end sig do - override.returns( - { - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: T.nilable(String), - reason: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + memo: T.nilable(String), + reason: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index f56e9886..07584a46 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -27,7 +27,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index cfce1ede..b10159d8 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -40,7 +40,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customer::BillingAddress)).returns(T.nilable(Orb::Models::Customer::BillingAddress)) + params(_: T.nilable(Orb::Models::Customer::BillingAddress)) + .returns(T.nilable(Orb::Models::Customer::BillingAddress)) end def billing_address=(_) end @@ -138,7 +139,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customer::ShippingAddress)).returns(T.nilable(Orb::Models::Customer::ShippingAddress)) + params(_: T.nilable(Orb::Models::Customer::ShippingAddress)) + .returns(T.nilable(Orb::Models::Customer::ShippingAddress)) end def shipping_address=(_) end @@ -147,9 +149,7 @@ module Orb def tax_id end - sig do - params(_: T.nilable(Orb::Models::Customer::TaxID)).returns(T.nilable(Orb::Models::Customer::TaxID)) - end + sig { params(_: T.nilable(Orb::Models::Customer::TaxID)).returns(T.nilable(Orb::Models::Customer::TaxID)) } def tax_id=(_) end @@ -166,7 +166,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)).returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) + params(_: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) + .returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) end def accounting_sync_configuration=(_) end @@ -176,7 +177,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customer::ReportingConfiguration)).returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) + params(_: T.nilable(Orb::Models::Customer::ReportingConfiguration)) + .returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) end def reporting_configuration=(_) end @@ -204,7 +206,8 @@ module Orb timezone: String, accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) - ).void + ) + .void end def initialize( id:, @@ -232,31 +235,32 @@ module Orb end sig do - override.returns( - { - id: String, - additional_emails: T::Array[String], - auto_collection: T::Boolean, - balance: String, - billing_address: T.nilable(Orb::Models::Customer::BillingAddress), - created_at: Time, - currency: T.nilable(String), - email: String, - email_delivery: T::Boolean, - exempt_from_automated_tax: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T::Hash[Symbol, String], - name: String, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - portal_url: T.nilable(String), - shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), - tax_id: T.nilable(Orb::Models::Customer::TaxID), - timezone: String, - accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), - reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) - } - ) + override + .returns( + { + id: String, + additional_emails: T::Array[String], + auto_collection: T::Boolean, + balance: String, + billing_address: T.nilable(Orb::Models::Customer::BillingAddress), + created_at: Time, + currency: T.nilable(String), + email: String, + email_delivery: T::Boolean, + exempt_from_automated_tax: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T::Hash[Symbol, String], + name: String, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + portal_url: T.nilable(String), + shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), + tax_id: T.nilable(Orb::Models::Customer::TaxID), + timezone: String, + accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), + reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) + } + ) end def to_hash end @@ -318,22 +322,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -410,22 +416,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -638,7 +646,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]).returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) + params(_: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) + .returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) end def accounting_providers=(_) end @@ -655,17 +664,20 @@ module Orb params( accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: T::Boolean - ).void + ) + .void end def initialize(accounting_providers:, excluded:) end sig do - override.returns( - { - accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: T::Boolean - } - ) + override + .returns( + { + accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + excluded: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index dc1e2da1..d8c24998 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -27,7 +27,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)).returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) + params(_: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) + .returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) end def accounting_sync_configuration=(_) end @@ -53,7 +54,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)).returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) + params(_: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) + .returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) end def billing_address=(_) end @@ -87,12 +89,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -118,7 +116,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)).returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) + params(_: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) + .returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) end def reporting_configuration=(_) end @@ -128,7 +127,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)).returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) + params(_: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) + .returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) end def shipping_address=(_) end @@ -154,11 +154,15 @@ module Orb Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ) - ).returns(T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) end def tax_configuration=(_) end @@ -168,7 +172,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::TaxID)).returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) + params(_: T.nilable(Orb::Models::CustomerCreateParams::TaxID)) + .returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) end def tax_id=(_) end @@ -199,13 +204,15 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), timezone: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( email:, @@ -230,39 +237,43 @@ module Orb end sig do - override.returns( - { - email: String, - name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), - currency: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), - timezone: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + email: String, + name: String, + accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + currency: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + timezone: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end class AccountingSyncConfiguration < Orb::BaseModel sig do - returns(T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider])) + returns( + T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) + ) end def accounting_providers end @@ -270,7 +281,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) - ).returns(T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider])) + ) + .returns( + T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) + ) end def accounting_providers=(_) end @@ -287,17 +301,20 @@ module Orb params( accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) - ).void + ) + .void end def initialize(accounting_providers: nil, excluded: nil) end sig do - override.returns( - { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) - } - ) + override + .returns( + { + accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), + excluded: T.nilable(T::Boolean) + } + ) end def to_hash end @@ -386,22 +403,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -496,22 +515,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -591,12 +612,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration], - [Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] - ] - ) + override + .returns( + [[Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index fa8e19f6..09f5a25d 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -63,7 +63,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -77,17 +78,18 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi index aa9e7e16..f32967f5 100644 --- a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)).returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) + params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) + .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) end def accounting_sync_configuration=(_) end @@ -37,7 +38,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)).returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) + params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) + .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) end def billing_address=(_) end @@ -79,12 +81,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -118,7 +116,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)).returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) + params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) + .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) end def reporting_configuration=(_) end @@ -128,7 +127,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)).returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) + params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) + .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) end def shipping_address=(_) end @@ -137,7 +137,8 @@ module Orb returns( T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ) ) @@ -149,14 +150,19 @@ module Orb params( _: T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) + .returns( + T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) ) ) - ).returns(T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - )) end def tax_configuration=(_) end @@ -166,7 +172,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)).returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) + params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) + .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) end def tax_id=(_) end @@ -189,12 +196,14 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( accounting_sync_configuration: nil, @@ -218,49 +227,59 @@ module Orb end sig do - override.returns( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - name: T.nilable(String), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - ), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + name: T.nilable(String), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), + request_options: Orb::RequestOptions + } + ) end def to_hash end class AccountingSyncConfiguration < Orb::BaseModel sig do - returns(T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider])) + returns( + T.nilable( + T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + ) + ) end def accounting_providers end sig do params( - _: T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]) - ).returns(T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider])) + _: T.nilable( + T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + ) + ) + .returns( + T.nilable( + T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + ) + ) end def accounting_providers=(_) end @@ -275,19 +294,26 @@ module Orb sig do params( - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]), + accounting_providers: T.nilable( + T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + ), excluded: T.nilable(T::Boolean) - ).void + ) + .void end def initialize(accounting_providers: nil, excluded: nil) end sig do - override.returns( - { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) - } - ) + override + .returns( + { + accounting_providers: T.nilable( + T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + ), + excluded: T.nilable(T::Boolean) + } + ) end def to_hash end @@ -376,22 +402,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -486,22 +514,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -581,18 +611,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration - ], - [ - Symbol, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 5479d22f..d02efe08 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)).returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) + params(_: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) + .returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) end def accounting_sync_configuration=(_) end @@ -37,7 +38,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)).returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) + params(_: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) + .returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) end def billing_address=(_) end @@ -79,12 +81,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -118,7 +116,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)).returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) + params(_: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) + .returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) end def reporting_configuration=(_) end @@ -128,7 +127,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)).returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) + params(_: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) + .returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) end def shipping_address=(_) end @@ -154,11 +154,15 @@ module Orb Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ) - ).returns(T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) end def tax_configuration=(_) end @@ -168,7 +172,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::TaxID)).returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) + params(_: T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) + .returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) end def tax_id=(_) end @@ -191,12 +196,14 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( accounting_sync_configuration: nil, @@ -220,41 +227,42 @@ module Orb end sig do - override.returns( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - name: T.nilable(String), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + name: T.nilable(String), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), + request_options: Orb::RequestOptions + } + ) end def to_hash end class AccountingSyncConfiguration < Orb::BaseModel sig do - returns(T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider])) + returns( + T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) + ) end def accounting_providers end @@ -262,7 +270,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) - ).returns(T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider])) + ) + .returns( + T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) + ) end def accounting_providers=(_) end @@ -279,17 +290,20 @@ module Orb params( accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) - ).void + ) + .void end def initialize(accounting_providers: nil, excluded: nil) end sig do - override.returns( - { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) - } - ) + override + .returns( + { + accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), + excluded: T.nilable(T::Boolean) + } + ) end def to_hash end @@ -378,22 +392,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -488,22 +504,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -583,12 +601,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration], - [Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] - ] - ) + override + .returns( + [[Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi index eabf16ce..0e32b0e8 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -37,20 +37,22 @@ module Orb type: Symbol, description: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(amount:, type:, description: nil, request_options: {}) end sig do - override.returns( - { - amount: String, - type: Symbol, - description: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: String, + type: Symbol, + description: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi index d6019a05..a1ae1d60 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -41,7 +41,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)).returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) + params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) + .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) end def credit_note=(_) end @@ -67,7 +68,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)).returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) + params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) + .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) end def invoice=(_) end @@ -100,7 +102,8 @@ module Orb invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), starting_balance: String, type: Symbol - ).void + ) + .void end def initialize( id:, @@ -117,20 +120,21 @@ module Orb end sig do - override.returns( - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), - starting_balance: String, - type: Symbol - } - ) + override + .returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), + starting_balance: String, + type: Symbol + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi index fcd423b4..0cf79a97 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -64,7 +64,8 @@ module Orb operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( cursor: nil, @@ -78,17 +79,18 @@ module Orb end sig do - override.returns( - { - cursor: T.nilable(String), - limit: Integer, - operation_time_gt: T.nilable(Time), - operation_time_gte: T.nilable(Time), - operation_time_lt: T.nilable(Time), - operation_time_lte: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + cursor: T.nilable(String), + limit: Integer, + operation_time_gt: T.nilable(Time), + operation_time_gte: T.nilable(Time), + operation_time_lt: T.nilable(Time), + operation_time_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi index 21270fc8..e1e1a4e1 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -41,7 +41,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)).returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) + params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) + .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) end def credit_note=(_) end @@ -67,7 +68,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)).returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) + params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) + .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) end def invoice=(_) end @@ -100,7 +102,8 @@ module Orb invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), starting_balance: String, type: Symbol - ).void + ) + .void end def initialize( id:, @@ -117,20 +120,21 @@ module Orb end sig do - override.returns( - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), - starting_balance: String, - type: Symbol - } - ) + override + .returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), + starting_balance: String, + type: Symbol + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi index 64cdf0db..1967c032 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi @@ -46,7 +46,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( currency: nil, @@ -58,15 +59,16 @@ module Orb end sig do - override.returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi index 7d086d90..34d6d4be 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi @@ -9,7 +9,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]).returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) + params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) + .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) end def data=(_) end @@ -28,7 +29,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]).returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) + params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) + .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) end def per_price_costs=(_) end @@ -72,17 +74,23 @@ module Orb timeframe_end: Time, timeframe_start: Time, total: String - ).void + ) + .void end def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do - override.returns( - { - per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String - } - ) + override + .returns( + { + per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) end def to_hash end @@ -157,36 +165,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -259,50 +270,52 @@ module Orb subtotal: String, total: String, quantity: T.nilable(Float) - ).void + ) + .void end def initialize(price:, price_id:, subtotal:, total:, quantity: nil) end sig do - override.returns( - { - 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 - ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + override + .returns( + { + 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 + ), + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 8d04dc5b..123fb8f0 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -46,7 +46,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( currency: nil, @@ -58,15 +59,16 @@ module Orb end sig do - override.returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/cost_list_response.rbi b/rbi/lib/orb/models/customers/cost_list_response.rbi index a9d5e3cd..51a7b606 100644 --- a/rbi/lib/orb/models/customers/cost_list_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_response.rbi @@ -9,7 +9,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data]).returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) + params(_: T::Array[Orb::Models::Customers::CostListResponse::Data]) + .returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) end def data=(_) end @@ -28,7 +29,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]).returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) + params(_: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) + .returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) end def per_price_costs=(_) end @@ -72,21 +74,23 @@ module Orb timeframe_end: Time, timeframe_start: Time, total: String - ).void + ) + .void end def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do - override.returns( - { - per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - ) + override + .returns( + { + per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) end def to_hash end @@ -161,36 +165,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -263,50 +270,52 @@ module Orb subtotal: String, total: String, quantity: T.nilable(Float) - ).void + ) + .void end def initialize(price:, price_id:, subtotal:, total:, quantity: nil) end sig do - override.returns( - { - 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 - ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + override + .returns( + { + 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 + ), + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi index 1ffc8515..2c28348f 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi @@ -46,21 +46,23 @@ module Orb include_all_blocks: T::Boolean, limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end sig do - override.returns( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi index f1f6e710..d828b3a2 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi @@ -69,7 +69,8 @@ module Orb maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), status: Symbol - ).void + ) + .void end def initialize( id:, @@ -83,17 +84,18 @@ module Orb end sig do - override.returns( - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Symbol - } - ) + override + .returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: Symbol + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credit_list_params.rbi b/rbi/lib/orb/models/customers/credit_list_params.rbi index f7413e24..ab2110c7 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -46,21 +46,23 @@ module Orb include_all_blocks: T::Boolean, limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end sig do - override.returns( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index 2cc41e3f..0560a765 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -69,7 +69,8 @@ module Orb maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), status: Symbol - ).void + ) + .void end def initialize( id:, @@ -83,17 +84,18 @@ module Orb end sig do - override.returns( - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Symbol - } - ) + override + .returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: Symbol + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index 2b5e0155..b1ddb590 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -56,16 +56,15 @@ module Orb def expiry_date=(_) end - sig do - returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) } def invoice_settings end sig do params( _: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings) - ).returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) + ) + .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) end def invoice_settings=(_) end @@ -75,12 +74,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -132,7 +127,8 @@ module Orb per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( amount:, @@ -152,23 +148,24 @@ module Orb end sig do - override.returns( - { - amount: Float, - entry_type: Symbol, - currency: T.nilable(String), - description: T.nilable(String), - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, - void_reason: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: Float, + entry_type: Symbol, + currency: T.nilable(String), + description: T.nilable(String), + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + per_unit_cost_basis: T.nilable(String), + target_expiry_date: Date, + block_id: String, + void_reason: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -222,20 +219,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 0cd87c67..4418a9e9 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -33,7 +33,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock + ) end def credit_block end @@ -41,7 +43,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -55,7 +60,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer + ) end def customer end @@ -63,7 +70,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer + ) end def customer=(_) end @@ -139,7 +149,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -159,23 +170,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -288,7 +300,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock + ) end def credit_block end @@ -296,7 +310,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -310,7 +327,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer + ) end def customer end @@ -318,7 +337,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer + ) end def customer=(_) end @@ -421,7 +443,8 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -444,26 +467,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -576,7 +600,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block end @@ -584,7 +610,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -598,7 +627,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + ) end def customer end @@ -606,7 +637,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + ) end def customer=(_) end @@ -691,7 +725,8 @@ module Orb new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -712,24 +747,25 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) end def to_hash end @@ -842,7 +878,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block end @@ -850,7 +888,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -864,7 +905,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer end @@ -872,7 +915,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer=(_) end @@ -948,7 +994,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -968,23 +1015,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1097,7 +1145,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock + ) end def credit_block end @@ -1105,7 +1155,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -1118,16 +1171,15 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) } def customer end sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) + ) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) end def customer=(_) end @@ -1221,7 +1273,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1243,25 +1296,26 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1374,7 +1428,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + ) end def credit_block end @@ -1382,7 +1438,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -1396,7 +1455,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + ) end def customer end @@ -1404,7 +1465,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + ) end def customer=(_) end @@ -1507,7 +1571,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1530,26 +1595,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1662,7 +1728,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + ) end def credit_block end @@ -1670,7 +1738,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -1684,7 +1755,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer + ) end def customer end @@ -1692,7 +1765,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer + ) end def customer=(_) end @@ -1768,7 +1844,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1788,23 +1865,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1892,38 +1970,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi index 3a5c67cc..557d1ea5 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -56,14 +56,13 @@ module Orb def expiry_date=(_) end - sig do - returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) } def invoice_settings end sig do - params(_: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)).returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) + params(_: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) + .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) end def invoice_settings=(_) end @@ -73,12 +72,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -130,7 +125,8 @@ module Orb per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( amount:, @@ -150,23 +146,24 @@ module Orb end sig do - override.returns( - { - amount: Float, - entry_type: Symbol, - currency: T.nilable(String), - description: T.nilable(String), - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, - void_reason: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: Float, + entry_type: Symbol, + currency: T.nilable(String), + description: T.nilable(String), + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + per_unit_cost_basis: T.nilable(String), + target_expiry_date: Date, + block_id: String, + void_reason: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -220,20 +217,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi index 738c4347..58563497 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -32,14 +32,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -52,14 +51,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) end def customer=(_) end @@ -135,7 +133,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -155,23 +154,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -283,14 +283,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -303,14 +302,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) end def customer=(_) end @@ -413,7 +411,8 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -436,26 +435,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -568,7 +568,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block end @@ -576,7 +578,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -589,16 +594,15 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) } def customer end sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) + ) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) end def customer=(_) end @@ -683,7 +687,8 @@ module Orb new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -704,24 +709,25 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) end def to_hash end @@ -834,7 +840,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block end @@ -842,7 +850,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -856,7 +867,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer end @@ -864,7 +877,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer=(_) end @@ -940,7 +956,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -960,23 +977,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1088,14 +1106,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1108,14 +1125,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) end def customer=(_) end @@ -1209,7 +1225,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1231,25 +1248,26 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1361,16 +1379,15 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) } def credit_block end sig do params( _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) + ) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1383,14 +1400,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) end def customer=(_) end @@ -1493,7 +1509,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1516,26 +1533,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1647,14 +1665,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1667,14 +1684,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) end def customer=(_) end @@ -1750,7 +1766,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1770,23 +1787,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1874,29 +1892,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry - ], - [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry - ], - [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry - ], - [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi index bac743bd..bcbf0b98 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi @@ -101,7 +101,8 @@ module Orb limit: Integer, minimum_amount: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -119,21 +120,22 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), - limit: Integer, - minimum_amount: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: T.nilable(Symbol), + entry_type: T.nilable(Symbol), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index 4e90e066..fa9322ba 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -33,7 +33,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock + ) end def credit_block end @@ -41,7 +43,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -54,14 +59,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) end def customer=(_) end @@ -137,7 +141,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -157,23 +162,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -286,7 +292,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock + ) end def credit_block end @@ -294,7 +302,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -307,14 +318,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) end def customer=(_) end @@ -417,7 +427,8 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -440,26 +451,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -572,7 +584,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block end @@ -580,7 +594,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -594,7 +611,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + ) end def customer end @@ -602,7 +621,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + ) end def customer=(_) end @@ -687,7 +709,8 @@ module Orb new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -708,24 +731,25 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) end def to_hash end @@ -838,7 +862,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block end @@ -846,7 +872,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -860,7 +889,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer end @@ -868,7 +899,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + ) end def customer=(_) end @@ -944,7 +978,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -964,23 +999,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1092,14 +1128,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1112,14 +1147,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) end def customer=(_) end @@ -1213,7 +1247,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1235,25 +1270,26 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1366,7 +1402,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + ) end def credit_block end @@ -1374,7 +1412,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -1388,7 +1429,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + ) end def customer end @@ -1396,7 +1439,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + ) end def customer=(_) end @@ -1499,7 +1545,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1522,26 +1569,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1654,7 +1702,9 @@ module Orb end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock) + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + ) end def credit_block end @@ -1662,7 +1712,10 @@ module Orb sig do params( _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock) + ) + .returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + ) end def credit_block=(_) end @@ -1675,14 +1728,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) end def customer=(_) end @@ -1758,7 +1810,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1778,23 +1831,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1882,35 +1936,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry - ], - [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry - ], - [ - Symbol, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi index aca81935..38c28533 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -101,7 +101,8 @@ module Orb limit: Integer, minimum_amount: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -119,21 +120,22 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), - limit: Integer, - minimum_amount: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: T.nilable(Symbol), + entry_type: T.nilable(Symbol), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi index 27335bb8..e314d630 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -32,14 +32,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -52,14 +51,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) end def customer=(_) end @@ -135,7 +133,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -155,23 +154,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -283,14 +283,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -303,14 +302,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) end def customer=(_) end @@ -413,7 +411,8 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -436,26 +435,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -567,14 +567,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -587,14 +586,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) end def customer=(_) end @@ -679,7 +677,8 @@ module Orb new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -700,24 +699,25 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) end def to_hash end @@ -829,14 +829,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -849,14 +848,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) end def customer=(_) end @@ -932,7 +930,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -952,23 +951,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1085,7 +1085,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1103,7 +1104,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) end def customer=(_) end @@ -1197,7 +1199,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1219,25 +1222,26 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1349,14 +1353,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1369,14 +1372,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) end def customer=(_) end @@ -1479,7 +1481,8 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1502,26 +1505,27 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) end def to_hash end @@ -1633,14 +1637,13 @@ module Orb def created_at=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) } def credit_block end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock).returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) end def credit_block=(_) end @@ -1653,14 +1656,13 @@ module Orb def currency=(_) end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) } def customer end sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer).returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) + params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) + .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) end def customer=(_) end @@ -1736,7 +1738,8 @@ module Orb metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1756,23 +1759,24 @@ module Orb end sig do - override.returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override + .returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) end def to_hash end @@ -1860,17 +1864,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry], - [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi index d930edb1..fbc8d6f5 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi @@ -29,7 +29,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) end def invoice_settings=(_) end @@ -76,7 +77,8 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( amount:, @@ -91,18 +93,19 @@ module Orb end sig do - override.returns( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -146,20 +149,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index c3e96a27..57300e69 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi @@ -34,7 +34,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) end def invoice_settings=(_) end @@ -81,7 +82,8 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) - ).void + ) + .void end def initialize( id:, @@ -96,18 +98,19 @@ module Orb end sig do - override.returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - ) + override + .returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) + } + ) end def to_hash end @@ -151,20 +154,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi index f83af1ec..06002b29 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi @@ -29,7 +29,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) end def invoice_settings=(_) end @@ -76,7 +77,8 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( amount:, @@ -91,18 +93,19 @@ module Orb end sig do - override.returns( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -146,20 +149,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi index 435dba63..99266258 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi @@ -34,7 +34,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) end def invoice_settings=(_) end @@ -81,7 +82,8 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) - ).void + ) + .void end def initialize( id:, @@ -96,18 +98,19 @@ module Orb end sig do - override.returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - ) + override + .returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) + } + ) end def to_hash end @@ -151,20 +154,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index 953a9828..0c84ec15 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi @@ -20,7 +20,8 @@ module Orb params( external_customer_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(external_customer_id:, request_options: {}) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi index 53f90ac1..32ccbe94 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi @@ -29,7 +29,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi index ec89c688..8d17536e 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi @@ -34,7 +34,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) end def invoice_settings=(_) end @@ -81,7 +82,8 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) - ).void + ) + .void end def initialize( id:, @@ -96,18 +98,19 @@ module Orb end sig do - override.returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - ) + override + .returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) + } + ) end def to_hash end @@ -151,20 +154,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi index 27a0ed25..ce387c73 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi @@ -29,7 +29,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi index e5080ecb..c5171a6d 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi @@ -34,7 +34,8 @@ module Orb end sig do - params(_: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings).returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) + params(_: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) + .returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) end def invoice_settings=(_) end @@ -81,7 +82,8 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) - ).void + ) + .void end def initialize( id:, @@ -96,18 +98,19 @@ module Orb end sig do - override.returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - ) + override + .returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) + } + ) end def to_hash end @@ -151,20 +154,22 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ).void + ) + .void end def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do - override.returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override + .returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index a0f55530..4bed5d5e 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -59,7 +59,8 @@ module Orb external_dimensional_price_group_id: T.nilable(String), metadata: T::Hash[Symbol, String], name: String - ).void + ) + .void end def initialize( id:, @@ -72,16 +73,17 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric_id: String, - dimensions: T::Array[String], - external_dimensional_price_group_id: T.nilable(String), - metadata: T::Hash[Symbol, String], - name: String - } - ) + override + .returns( + { + id: String, + billable_metric_id: String, + dimensions: T::Array[String], + external_dimensional_price_group_id: T.nilable(String), + metadata: T::Hash[Symbol, String], + name: String + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi index 5ee6cd87..d700542a 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -43,12 +43,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -61,7 +57,8 @@ module Orb external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( billable_metric_id:, @@ -74,16 +71,17 @@ module Orb end sig do - override.returns( - { - billable_metric_id: String, - dimensions: T::Array[String], - name: String, - external_dimensional_price_group_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + billable_metric_id: String, + dimensions: T::Array[String], + name: String, + external_dimensional_price_group_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi index 2b727124..478cf18b 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -27,7 +27,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/dimensional_price_groups.rbi b/rbi/lib/orb/models/dimensional_price_groups.rbi index 1c0e17ca..a5156ccb 100644 --- a/rbi/lib/orb/models/dimensional_price_groups.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups.rbi @@ -8,7 +8,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::DimensionalPriceGroup]).returns(T::Array[Orb::Models::DimensionalPriceGroup]) + params(_: T::Array[Orb::Models::DimensionalPriceGroup]) + .returns(T::Array[Orb::Models::DimensionalPriceGroup]) end def data=(_) end @@ -25,18 +26,17 @@ module Orb params( data: T::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata - ).void + ) + .void end def initialize(data:, pagination_metadata:) end sig do - override.returns( - { - data: T::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata - } - ) + override + .returns( + {data: T::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata} + ) end def to_hash end diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index ea59f6a1..c19f3563 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -44,34 +44,32 @@ module Orb usage_discount: Float, reason: T.nilable(String), discount_type: Symbol - ).void + ) + .void end def initialize(applies_to_price_ids:, usage_discount:, reason: nil, discount_type: :usage) end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - usage_discount: Float, - reason: T.nilable(String) - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + usage_discount: Float, + reason: T.nilable(String) + } + ) end def to_hash end end sig do - override.returns( - [ - [Symbol, Orb::Models::PercentageDiscount], - [Symbol, Orb::Models::TrialDiscount], - [Symbol, Orb::Models::Discount::UsageDiscount], - [Symbol, Orb::Models::AmountDiscount] - ] - ) + override + .returns( + [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::TrialDiscount], [Symbol, Orb::Models::Discount::UsageDiscount], [Symbol, Orb::Models::AmountDiscount]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index 07ab8a1c..6676213b 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -46,13 +46,12 @@ module Orb end sig do - override.returns( - { - amount: String, - grouping_values: T::Array[T.any(String, Float, T::Boolean)], - quantity: Float - } - ) + override + .returns({ + amount: String, + grouping_values: T::Array[T.any(String, Float, T::Boolean)], + quantity: Float + }) end def to_hash end diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index 95fe4654..9adb08dd 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::EventIngestParams::Event]).returns(T::Array[Orb::Models::EventIngestParams::Event]) + params(_: T::Array[Orb::Models::EventIngestParams::Event]) + .returns(T::Array[Orb::Models::EventIngestParams::Event]) end def events=(_) end @@ -38,20 +39,22 @@ module Orb backfill_id: T.nilable(String), debug: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(events:, backfill_id: nil, debug: nil, request_options: {}) end sig do - override.returns( - { - events: T::Array[Orb::Models::EventIngestParams::Event], - backfill_id: T.nilable(String), - debug: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + events: T::Array[Orb::Models::EventIngestParams::Event], + backfill_id: T.nilable(String), + debug: T::Boolean, + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -113,7 +116,8 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String) - ).void + ) + .void end def initialize( event_name:, @@ -126,16 +130,17 @@ module Orb end sig do - override.returns( - { - event_name: String, - idempotency_key: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String) - } - ) + override + .returns( + { + event_name: String, + idempotency_key: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/event_ingest_response.rbi b/rbi/lib/orb/models/event_ingest_response.rbi index e4829b9b..df0c820a 100644 --- a/rbi/lib/orb/models/event_ingest_response.rbi +++ b/rbi/lib/orb/models/event_ingest_response.rbi @@ -8,7 +8,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::EventIngestResponse::ValidationFailed]).returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) + params(_: T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) + .returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) end def validation_failed=(_) end @@ -18,7 +19,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::EventIngestResponse::Debug)).returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) + params(_: T.nilable(Orb::Models::EventIngestResponse::Debug)) + .returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) end def debug=(_) end @@ -27,18 +29,20 @@ module Orb params( validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], debug: T.nilable(Orb::Models::EventIngestResponse::Debug) - ).void + ) + .void end def initialize(validation_failed:, debug: nil) end sig do - override.returns( - { - validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: T.nilable(Orb::Models::EventIngestResponse::Debug) - } - ) + override + .returns( + { + validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], + debug: T.nilable(Orb::Models::EventIngestResponse::Debug) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index 8f92b7b0..1113fbfe 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -36,20 +36,22 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) end sig do - override.returns( - { - event_ids: T::Array[String], - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + event_ids: T::Array[String], + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index b0933ff4..b2197cd0 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -8,7 +8,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::EventSearchResponse::Data]).returns(T::Array[Orb::Models::EventSearchResponse::Data]) + params(_: T::Array[Orb::Models::EventSearchResponse::Data]) + .returns(T::Array[Orb::Models::EventSearchResponse::Data]) end def data=(_) end @@ -87,7 +88,8 @@ module Orb external_customer_id: T.nilable(String), properties: T.anything, timestamp: Time - ).void + ) + .void end def initialize( id:, @@ -101,17 +103,18 @@ module Orb end sig do - override.returns( - { - id: String, - customer_id: T.nilable(String), - deprecated: T::Boolean, - event_name: String, - external_customer_id: T.nilable(String), - properties: T.anything, - timestamp: Time - } - ) + override + .returns( + { + id: String, + customer_id: T.nilable(String), + deprecated: T::Boolean, + event_name: String, + external_customer_id: T.nilable(String), + properties: T.anything, + timestamp: Time + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/event_update_params.rbi b/rbi/lib/orb/models/event_update_params.rbi index 68b80e67..883259aa 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -54,7 +54,8 @@ module Orb customer_id: T.nilable(String), external_customer_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( event_name:, @@ -67,16 +68,17 @@ module Orb end sig do - override.returns( - { - event_name: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + event_name: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index a4788e6c..15811b62 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -105,7 +105,8 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -123,21 +124,22 @@ module Orb end sig do - override.returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override + .returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_create_params.rbi b/rbi/lib/orb/models/events/backfill_create_params.rbi index 7dd71780..9aa1c677 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -73,7 +73,8 @@ module Orb external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( timeframe_end:, @@ -88,18 +89,19 @@ module Orb end sig do - override.returns( - { - timeframe_end: Time, - timeframe_start: Time, - close_time: T.nilable(Time), - customer_id: T.nilable(String), - deprecation_filter: T.nilable(String), - external_customer_id: T.nilable(String), - replace_existing_events: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + timeframe_end: Time, + timeframe_start: Time, + close_time: T.nilable(Time), + customer_id: T.nilable(String), + deprecation_filter: T.nilable(String), + external_customer_id: T.nilable(String), + replace_existing_events: T::Boolean, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index 623bf1f9..8f7e0aea 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -105,7 +105,8 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -123,21 +124,22 @@ module Orb end sig do - override.returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override + .returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index ddc9f79a..b8a5636f 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -105,7 +105,8 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -123,21 +124,22 @@ module Orb end sig do - override.returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override + .returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_list_params.rbi b/rbi/lib/orb/models/events/backfill_list_params.rbi index 800d78be..20f1ff9d 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -28,7 +28,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index bb94c15e..3beb2761 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -105,7 +105,8 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -123,21 +124,22 @@ module Orb end sig do - override.returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override + .returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index a61a4ecf..501598fc 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -105,7 +105,8 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ).void + ) + .void end def initialize( id:, @@ -123,21 +124,22 @@ module Orb end sig do - override.returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override + .returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index a0b387c9..3b856b30 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Events::EventVolumes::Data]).returns(T::Array[Orb::Models::Events::EventVolumes::Data]) + params(_: T::Array[Orb::Models::Events::EventVolumes::Data]) + .returns(T::Array[Orb::Models::Events::EventVolumes::Data]) end def data=(_) end diff --git a/rbi/lib/orb/models/events/volume_list_params.rbi b/rbi/lib/orb/models/events/volume_list_params.rbi index 0e698e91..dc0200ce 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -46,21 +46,23 @@ module Orb limit: Integer, timeframe_end: Time, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) end sig do - override.returns( - { - timeframe_start: Time, - cursor: T.nilable(String), - limit: Integer, - timeframe_end: Time, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + timeframe_start: Time, + cursor: T.nilable(String), + limit: Integer, + timeframe_end: Time, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index 84b4b58a..52d7fb98 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -32,7 +32,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::BillingAddress)).returns(T.nilable(Orb::Models::Invoice::BillingAddress)) + params(_: T.nilable(Orb::Models::Invoice::BillingAddress)) + .returns(T.nilable(Orb::Models::Invoice::BillingAddress)) end def billing_address=(_) end @@ -49,9 +50,7 @@ module Orb def credit_notes end - sig do - params(_: T::Array[Orb::Models::Invoice::CreditNote]).returns(T::Array[Orb::Models::Invoice::CreditNote]) - end + sig { params(_: T::Array[Orb::Models::Invoice::CreditNote]).returns(T::Array[Orb::Models::Invoice::CreditNote]) } def credit_notes=(_) end @@ -76,7 +75,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]).returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) + params(_: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) + .returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) end def customer_balance_transactions=(_) end @@ -86,7 +86,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerTaxID)).returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) + params(_: T.nilable(Orb::Models::Invoice::CustomerTaxID)) + .returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) end def customer_tax_id=(_) end @@ -101,11 +102,7 @@ module Orb sig do returns( - T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )] + T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end def discounts @@ -113,16 +110,11 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )] - ).returns(T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )]) + _: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + ) + .returns( + T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + ) end def discounts=(_) end @@ -203,9 +195,7 @@ module Orb def line_items end - sig do - params(_: T::Array[Orb::Models::Invoice::LineItem]).returns(T::Array[Orb::Models::Invoice::LineItem]) - end + sig { params(_: T::Array[Orb::Models::Invoice::LineItem]).returns(T::Array[Orb::Models::Invoice::LineItem]) } def line_items=(_) end @@ -213,9 +203,7 @@ module Orb def maximum end - sig do - params(_: T.nilable(Orb::Models::Invoice::Maximum)).returns(T.nilable(Orb::Models::Invoice::Maximum)) - end + sig { params(_: T.nilable(Orb::Models::Invoice::Maximum)).returns(T.nilable(Orb::Models::Invoice::Maximum)) } def maximum=(_) end @@ -247,9 +235,7 @@ module Orb def minimum end - sig do - params(_: T.nilable(Orb::Models::Invoice::Minimum)).returns(T.nilable(Orb::Models::Invoice::Minimum)) - end + sig { params(_: T.nilable(Orb::Models::Invoice::Minimum)).returns(T.nilable(Orb::Models::Invoice::Minimum)) } def minimum=(_) end @@ -274,7 +260,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Invoice::PaymentAttempt]).returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) + params(_: T::Array[Orb::Models::Invoice::PaymentAttempt]) + .returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) end def payment_attempts=(_) end @@ -308,7 +295,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::ShippingAddress)).returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) + params(_: T.nilable(Orb::Models::Invoice::ShippingAddress)) + .returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) end def shipping_address=(_) end @@ -326,7 +314,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::Subscription)).returns(T.nilable(Orb::Models::Invoice::Subscription)) + params(_: T.nilable(Orb::Models::Invoice::Subscription)) + .returns(T.nilable(Orb::Models::Invoice::Subscription)) end def subscription=(_) end @@ -384,11 +373,7 @@ module Orb customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), discount: T.anything, - discounts: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )], + discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), @@ -418,7 +403,8 @@ module Orb total: String, voided_at: T.nilable(Time), will_auto_issue: T::Boolean - ).void + ) + .void end def initialize( id:, @@ -466,55 +452,52 @@ module Orb end sig do - override.returns( - { - id: String, - amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::Invoice::CreditNote], - currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), - discount: T.anything, - discounts: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_date: Time, - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Symbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::Invoice::LineItem], - maximum: T.nilable(Orb::Models::Invoice::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Invoice::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::Invoice::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - ) + override + .returns( + { + id: String, + amount_due: String, + auto_collection: Orb::Models::Invoice::AutoCollection, + billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), + created_at: Time, + credit_notes: T::Array[Orb::Models::Invoice::CreditNote], + currency: String, + customer: Orb::Models::Invoice::Customer, + customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), + discount: T.anything, + discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_date: Time, + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: Symbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: T::Array[Orb::Models::Invoice::LineItem], + maximum: T.nilable(Orb::Models::Invoice::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Invoice::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), + status: Symbol, + subscription: T.nilable(Orb::Models::Invoice::Subscription), + subtotal: String, + sync_failed_at: T.nilable(Time), + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + } + ) end def to_hash end @@ -558,20 +541,22 @@ module Orb next_attempt_at: T.nilable(Time), num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) - ).void + ) + .void end def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) end sig do - override.returns( - { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) - } - ) + override + .returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) end def to_hash end @@ -634,22 +619,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -721,23 +708,25 @@ module Orb total: String, type: String, voided_at: T.nilable(Time) - ).void + ) + .void end def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) end sig do - override.returns( - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - ) + override + .returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) end def to_hash end @@ -807,7 +796,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)).returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) + params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) + .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) end def credit_note=(_) end @@ -833,7 +823,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)).returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) + params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) + .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) end def invoice=(_) end @@ -866,7 +857,8 @@ module Orb invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), starting_balance: String, type: Symbol - ).void + ) + .void end def initialize( id:, @@ -883,20 +875,21 @@ module Orb end sig do - override.returns( - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Symbol - } - ) + override + .returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), + starting_balance: String, + type: Symbol + } + ) end def to_hash end @@ -1199,13 +1192,15 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - )] + ) + ] ) end def adjustments @@ -1213,20 +1208,27 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - )] - ).returns(T::Array[T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ] + ) end def adjustments=(_) end @@ -1272,14 +1274,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -1305,7 +1310,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Maximum)).returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) + params(_: T.nilable(Orb::Models::Invoice::LineItem::Maximum)) + .returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) end def maximum=(_) end @@ -1323,7 +1329,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Minimum)).returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) + params(_: T.nilable(Orb::Models::Invoice::LineItem::Minimum)) + .returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) end def minimum=(_) end @@ -1425,38 +1432,41 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ) ) - ).returns(T.nilable( - 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.nilable( + 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 @@ -1479,11 +1489,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - )] + ) + ] ) end def sub_line_items @@ -1491,16 +1503,23 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - )] - ).returns(T::Array[T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + ) + ] + ) end def sub_line_items=(_) end @@ -1518,7 +1537,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Invoice::LineItem::TaxAmount]).returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) + params(_: T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) + .returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) end def tax_amounts=(_) end @@ -1527,9 +1547,15 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - )], + adjustments: T::Array[ + T.any( + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ], amount: String, credits_applied: String, discount: T.nilable( @@ -1582,14 +1608,17 @@ module Orb ), quantity: Float, start_date: Time, - sub_line_items: T::Array[T.any( + sub_line_items: T::Array[ + T.any( Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - )], + ) + ], subtotal: String, tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] - ).void + ) + .void end def initialize( id:, @@ -1616,74 +1645,83 @@ module Orb end sig do - override.returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - )], - amount: String, - credits_applied: String, - discount: T.nilable( + override + .returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[ T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment ) - ), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + ], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[ 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 + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem ) - ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - )], - subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] - } - ) + ], + subtotal: String, + tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] + } + ) end def to_hash end @@ -1757,7 +1795,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1771,17 +1810,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) end def to_hash end @@ -1853,7 +1893,8 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1867,17 +1908,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) end def to_hash end @@ -1949,7 +1991,8 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1963,17 +2006,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) end def to_hash end @@ -2054,7 +2098,8 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2069,18 +2114,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end @@ -2152,7 +2198,8 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2166,32 +2213,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end end sig do - override.returns( - [ - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -2261,14 +2304,13 @@ module Orb def amount=(_) end - sig do - returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) - end + sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) } def grouping end sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)).returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) end def grouping=(_) end @@ -2278,7 +2320,8 @@ module Orb end sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig).returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) + params(_: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) + .returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) end def matrix_config=(_) end @@ -2315,22 +2358,24 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -2394,7 +2439,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)).returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) end def grouping=(_) end @@ -2420,7 +2466,8 @@ module Orb end sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig).returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) + params(_: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) + .returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) end def tier_config=(_) end @@ -2441,22 +2488,24 @@ module Orb quantity: Float, tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) end def to_hash end @@ -2531,14 +2580,13 @@ module Orb def amount=(_) end - sig do - returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) - end + sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) } def grouping end sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)).returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) end def grouping=(_) end @@ -2574,21 +2622,23 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -2621,13 +2671,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem], - [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem], - [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem]] + ) end private_class_method def self.variants end @@ -2787,22 +2834,24 @@ module Orb payment_provider: T.nilable(Symbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean - ).void + ) + .void end def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) end sig do - override.returns( - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - ) + override + .returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) end def to_hash end @@ -2875,22 +2924,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index d82138dd..2739102c 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -27,7 +27,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceCreateParams::LineItem]).returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) + params(_: T::Array[Orb::Models::InvoiceCreateParams::LineItem]) + .returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) end def line_items=(_) end @@ -73,14 +74,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -106,12 +110,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -144,7 +144,8 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( currency:, @@ -162,28 +163,29 @@ module Orb end sig do - override.returns( - { - currency: String, - invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: T.nilable(String), - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_customer_id: T.nilable(String), - memo: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - will_auto_issue: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: String, + invoice_date: Time, + line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + customer_id: T.nilable(String), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_customer_id: T.nilable(String), + memo: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + will_auto_issue: T::Boolean, + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -242,7 +244,8 @@ module Orb end sig do - params(_: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig).returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) + params(_: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) + .returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) end def unit_config=(_) end @@ -256,23 +259,25 @@ module Orb quantity: Float, start_date: Date, unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - ).void + ) + .void end def initialize(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:) end sig do - override.returns( - { - end_date: Date, - item_id: String, - model_type: Symbol, - name: String, - quantity: Float, - start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - } - ) + override + .returns( + { + end_date: Date, + item_id: String, + model_type: Symbol, + name: String, + quantity: Float, + start_date: Date, + unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index 8a26002a..4e5439d7 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -18,7 +18,8 @@ module Orb params( subscription_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(subscription_id:, request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 2fe82e0d..a07c9f22 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection).returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) + params(_: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) + .returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) end def auto_collection=(_) end @@ -34,7 +35,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) end def billing_address=(_) end @@ -52,7 +54,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]).returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) + params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) + .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) end def credit_notes=(_) end @@ -70,7 +73,8 @@ module Orb end sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::Customer).returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) + params(_: Orb::Models::InvoiceFetchUpcomingResponse::Customer) + .returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) end def customer=(_) end @@ -80,7 +84,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]).returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) + params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) + .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) end def customer_balance_transactions=(_) end @@ -90,7 +95,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) end def customer_tax_id=(_) end @@ -105,11 +111,7 @@ module Orb sig do returns( - T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )] + T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end def discounts @@ -117,16 +119,11 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )] - ).returns(T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )]) + _: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + ) + .returns( + T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + ) end def discounts=(_) end @@ -200,7 +197,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]).returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) + params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) + .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) end def line_items=(_) end @@ -210,7 +208,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) end def maximum=(_) end @@ -244,7 +243,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) end def minimum=(_) end @@ -270,7 +270,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]).returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) + params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) + .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) end def payment_attempts=(_) end @@ -304,7 +305,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) end def shipping_address=(_) end @@ -322,7 +324,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) end def subscription=(_) end @@ -388,11 +391,7 @@ module Orb customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), discount: T.anything, - discounts: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )], + discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), @@ -422,7 +421,8 @@ module Orb total: String, voided_at: T.nilable(Time), will_auto_issue: T::Boolean - ).void + ) + .void end def initialize( id:, @@ -470,55 +470,52 @@ module Orb end sig do - override.returns( - { - id: String, - amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], - currency: String, - customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), - discount: T.anything, - discounts: T::Array[T.any( - Orb::Models::PercentageDiscount, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - )], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Symbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - target_date: Time, - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - ) + override + .returns( + { + id: String, + amount_due: String, + auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), + created_at: Time, + credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + currency: String, + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, + customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), + discount: T.anything, + discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: Symbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), + status: Symbol, + subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), + subtotal: String, + sync_failed_at: T.nilable(Time), + target_date: Time, + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + } + ) end def to_hash end @@ -562,20 +559,22 @@ module Orb next_attempt_at: T.nilable(Time), num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) - ).void + ) + .void end def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) end sig do - override.returns( - { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) - } - ) + override + .returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) end def to_hash end @@ -638,22 +637,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end @@ -725,23 +726,25 @@ module Orb total: String, type: String, voided_at: T.nilable(Time) - ).void + ) + .void end def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) end sig do - override.returns( - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - ) + override + .returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) end def to_hash end @@ -806,14 +809,13 @@ module Orb def created_at=(_) end - sig do - returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) - end + sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) } def credit_note end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) end def credit_note=(_) end @@ -834,14 +836,13 @@ module Orb def ending_balance=(_) end - sig do - returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) - end + sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) } def invoice end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) end def invoice=(_) end @@ -874,7 +875,8 @@ module Orb invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), starting_balance: String, type: Symbol - ).void + ) + .void end def initialize( id:, @@ -891,20 +893,21 @@ module Orb end sig do - override.returns( - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Symbol - } - ) + override + .returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), + starting_balance: String, + type: Symbol + } + ) end def to_hash end @@ -1207,9 +1210,15 @@ module Orb sig do returns( - T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - )] + T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ] ) end def adjustments @@ -1217,12 +1226,27 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - )] - ).returns(T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - )]) + _: T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ] + ) end def adjustments=(_) end @@ -1268,14 +1292,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -1301,7 +1328,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) end def maximum=(_) end @@ -1319,7 +1347,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) + params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) + .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) end def minimum=(_) end @@ -1421,38 +1450,41 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ) ) - ).returns(T.nilable( - 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.nilable( + 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 @@ -1475,11 +1507,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - )] + ) + ] ) end def sub_line_items @@ -1487,12 +1521,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - )] - ).returns(T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - )]) + _: T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + ) + ] + ) end def sub_line_items=(_) end @@ -1510,7 +1555,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]).returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) + params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) + .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) end def tax_amounts=(_) end @@ -1519,9 +1565,15 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - )], + adjustments: T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + ], amount: String, credits_applied: String, discount: T.nilable( @@ -1574,12 +1626,17 @@ module Orb ), quantity: Float, start_date: Time, - sub_line_items: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - )], + sub_line_items: T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + ) + ], subtotal: String, tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] - ).void + ) + .void end def initialize( id:, @@ -1606,72 +1663,83 @@ module Orb end sig do - override.returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - )], - amount: String, - credits_applied: String, - discount: T.nilable( + override + .returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[ T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment ) - ), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + ], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[ 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 + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem ) - ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - )], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] - } - ) + ], + subtotal: String, + tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + } + ) end def to_hash end @@ -1745,7 +1813,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1759,17 +1828,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) end def to_hash end @@ -1841,7 +1911,8 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1855,17 +1926,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) end def to_hash end @@ -1937,7 +2009,8 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1951,17 +2024,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) end def to_hash end @@ -2042,7 +2116,8 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2057,18 +2132,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end @@ -2140,7 +2216,8 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2154,47 +2231,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -2265,7 +2323,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) + ) end def grouping end @@ -2273,21 +2333,23 @@ module Orb sig do params( _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) - ).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) + ) + .returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) + ) end def grouping=(_) end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) } def matrix_config end sig do params( _: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig - ).returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) + ) + .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) end def matrix_config=(_) end @@ -2324,22 +2386,24 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -2399,7 +2463,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping)) + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) + ) end def grouping end @@ -2407,7 +2473,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) - ).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping)) + ) + .returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) + ) end def grouping=(_) end @@ -2428,14 +2497,13 @@ module Orb def quantity=(_) end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) } def tier_config end sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig).returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) + params(_: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) + .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) end def tier_config=(_) end @@ -2456,22 +2524,24 @@ module Orb quantity: Float, tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) end def to_hash end @@ -2547,7 +2617,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping)) + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) + ) end def grouping end @@ -2555,7 +2627,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) - ).returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping)) + ) + .returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) + ) end def grouping=(_) end @@ -2591,21 +2666,23 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -2638,16 +2715,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem - ], - [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem], - [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] - ] - ) + override + .returns( + [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem]] + ) end private_class_method def self.variants end @@ -2807,22 +2878,24 @@ module Orb payment_provider: T.nilable(Symbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean - ).void + ) + .void end def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) end sig do - override.returns( - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - ) + override + .returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) end def to_hash end @@ -2895,22 +2968,24 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ).void + ) + .void end def initialize(city:, country:, line1:, line2:, postal_code:, state:) end sig do - override.returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override + .returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index 8ff82906..fe09bf61 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -18,7 +18,8 @@ module Orb params( synchronous: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(synchronous: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index 235cefea..3b450b24 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -6,13 +6,10 @@ module Orb abstract! sig do - override.returns( - [ - [Symbol, Orb::Models::PercentageDiscount], - [Symbol, Orb::Models::AmountDiscount], - [Symbol, Orb::Models::TrialDiscount] - ] - ) + override + .returns( + [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount], [Symbol, Orb::Models::TrialDiscount]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/invoice_line_item_create_params.rbi b/rbi/lib/orb/models/invoice_line_item_create_params.rbi index 34057220..1a9097a5 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -63,23 +63,25 @@ module Orb quantity: Float, start_date: Date, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) end sig do - override.returns( - { - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_line_item_create_response.rbi b/rbi/lib/orb/models/invoice_line_item_create_response.rbi index 99d46244..67acabed 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -21,9 +21,15 @@ module Orb sig do returns( - T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - )] + T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + ) + ] ) end def adjustments @@ -31,12 +37,27 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - )] - ).returns(T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - )]) + _: T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + ) + ] + ) end def adjustments=(_) end @@ -82,14 +103,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -115,7 +139,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)).returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) + params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) + .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) end def maximum=(_) end @@ -133,7 +158,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)).returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) + params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) + .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) end def minimum=(_) end @@ -235,38 +261,41 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ) ) - ).returns(T.nilable( - 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.nilable( + 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 @@ -289,11 +318,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - )] + ) + ] ) end def sub_line_items @@ -301,16 +332,23 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - )] - ).returns(T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + ) + ] + ) end def sub_line_items=(_) end @@ -328,7 +366,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]).returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) + params(_: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) + .returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) end def tax_amounts=(_) end @@ -337,9 +376,15 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - )], + adjustments: T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + ) + ], amount: String, credits_applied: String, discount: T.nilable( @@ -392,12 +437,17 @@ module Orb ), quantity: Float, start_date: Time, - sub_line_items: T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - )], + sub_line_items: T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + ) + ], subtotal: String, tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] - ).void + ) + .void end def initialize( id:, @@ -424,74 +474,83 @@ module Orb end sig do - override.returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - )], - amount: String, - credits_applied: String, - discount: T.nilable( + override + .returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[ T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment ) - ), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + ], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[ 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 + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem ) - ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - )], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] - } - ) + ], + subtotal: String, + tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + } + ) end def to_hash end @@ -565,7 +624,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -579,17 +639,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) end def to_hash end @@ -661,7 +722,8 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -675,17 +737,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) end def to_hash end @@ -757,7 +820,8 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -771,17 +835,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) end def to_hash end @@ -862,7 +927,8 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -877,18 +943,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end @@ -960,7 +1027,8 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -974,41 +1042,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment - ], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment] - ] - ) + override + .returns( + [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1078,26 +1133,24 @@ module Orb def amount=(_) end - sig do - returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) - end + sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) } def grouping end sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)).returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) end def grouping=(_) end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) - end + sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) } def matrix_config end sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig).returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) + params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) + .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) end def matrix_config=(_) end @@ -1134,22 +1187,24 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -1208,14 +1263,13 @@ module Orb def amount=(_) end - sig do - returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) - end + sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) } def grouping end sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)).returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) end def grouping=(_) end @@ -1236,14 +1290,13 @@ module Orb def quantity=(_) end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) - end + sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) } def tier_config end sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig).returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) + params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) + .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) end def tier_config=(_) end @@ -1264,22 +1317,24 @@ module Orb quantity: Float, tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) end def to_hash end @@ -1354,14 +1409,13 @@ module Orb def amount=(_) end - sig do - returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) - end + sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) } def grouping end sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)).returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) + params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) + .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) end def grouping=(_) end @@ -1397,21 +1451,23 @@ module Orb name: String, quantity: Float, type: Symbol - ).void + ) + .void end def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do - override.returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override + .returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) end def to_hash end @@ -1444,13 +1500,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] - ] - ) + override + .returns( + [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index 25ab0c33..9e0025ce 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -180,7 +180,8 @@ module Orb status: T.nilable(T::Array[Symbol]), subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( amount: nil, @@ -207,30 +208,31 @@ module Orb end sig do - override.returns( - { - amount: T.nilable(String), - amount_gt: T.nilable(String), - amount_lt: T.nilable(String), - cursor: T.nilable(String), - customer_id: T.nilable(String), - date_type: T.nilable(Symbol), - due_date: T.nilable(Date), - due_date_window: T.nilable(String), - due_date_gt: T.nilable(Date), - due_date_lt: T.nilable(Date), - external_customer_id: T.nilable(String), - invoice_date_gt: T.nilable(Time), - invoice_date_gte: T.nilable(Time), - invoice_date_lt: T.nilable(Time), - invoice_date_lte: T.nilable(Time), - is_recurring: T.nilable(T::Boolean), - limit: Integer, - status: T.nilable(T::Array[Symbol]), - subscription_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + amount: T.nilable(String), + amount_gt: T.nilable(String), + amount_lt: T.nilable(String), + cursor: T.nilable(String), + customer_id: T.nilable(String), + date_type: T.nilable(Symbol), + due_date: T.nilable(Date), + due_date_window: T.nilable(String), + due_date_gt: T.nilable(Date), + due_date_lt: T.nilable(Date), + external_customer_id: T.nilable(String), + invoice_date_gt: T.nilable(Time), + invoice_date_gte: T.nilable(Time), + invoice_date_lt: T.nilable(Time), + invoice_date_lte: T.nilable(Time), + is_recurring: T.nilable(T::Boolean), + limit: Integer, + status: T.nilable(T::Array[Symbol]), + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_mark_paid_params.rbi b/rbi/lib/orb/models/invoice_mark_paid_params.rbi index ef56ae78..006af8d5 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -36,20 +36,22 @@ module Orb external_id: T.nilable(String), notes: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(payment_received_date:, external_id: nil, notes: nil, request_options: {}) end sig do - override.returns( - { - payment_received_date: Date, - external_id: T.nilable(String), - notes: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + payment_received_date: Date, + external_id: T.nilable(String), + notes: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index 09be4bd2..e4e07c12 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -11,12 +11,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -25,18 +21,18 @@ module Orb params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(metadata: nil, request_options: {}) end sig do - override.returns( - { - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns({ + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + }) end def to_hash end diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index 37f6b3ed..a3d350d6 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Item::ExternalConnection]).returns(T::Array[Orb::Models::Item::ExternalConnection]) + params(_: T::Array[Orb::Models::Item::ExternalConnection]) + .returns(T::Array[Orb::Models::Item::ExternalConnection]) end def external_connections=(_) end @@ -43,20 +44,22 @@ module Orb created_at: Time, external_connections: T::Array[Orb::Models::Item::ExternalConnection], name: String - ).void + ) + .void end def initialize(id:, created_at:, external_connections:, name:) end sig do - override.returns( - { - id: String, - created_at: Time, - external_connections: T::Array[Orb::Models::Item::ExternalConnection], - name: String - } - ) + override + .returns( + { + id: String, + created_at: Time, + external_connections: T::Array[Orb::Models::Item::ExternalConnection], + name: String + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index baae315c..a8943cee 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -27,7 +27,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index 18fef181..85faffd7 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])).returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) + params(_: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) + .returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) end def external_connections=(_) end @@ -29,17 +30,21 @@ module Orb external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(external_connections: nil, name: nil, request_options: {}) end sig do - override.returns( - { - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), request_options: Orb::RequestOptions - } - ) + override + .returns( + { + external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), + name: T.nilable(String), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index 4c54c7b6..ed757c5f 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -43,12 +43,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -61,22 +57,24 @@ module Orb sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) end sig do - override.returns( - { - description: T.nilable(String), - item_id: String, - name: String, - sql: String, - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + description: T.nilable(String), + item_id: String, + name: String, + sql: String, + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index 09f86289..9646d9b3 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -63,7 +63,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -77,17 +78,18 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index 0cc5e868..9ae90efa 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -11,12 +11,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -25,18 +21,18 @@ module Orb params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(metadata: nil, request_options: {}) end sig do - override.returns( - { - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns({ + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + }) end def to_hash end diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index 3f91e7d9..3536e607 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -41,20 +41,22 @@ module Orb discount_type: Symbol, percentage_discount: Float, reason: T.nilable(String) - ).void + ) + .void end def initialize(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil) end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + percentage_discount: Float, + reason: T.nilable(String) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 117ae18d..ce92affb 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -13,13 +13,15 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - )] + ) + ] ) end def adjustments @@ -27,20 +29,27 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - )] - ).returns(T::Array[T.any( - Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment + ) + ] + ) end def adjustments=(_) end @@ -49,9 +58,7 @@ module Orb def base_plan end - sig do - params(_: T.nilable(Orb::Models::Plan::BasePlan)).returns(T.nilable(Orb::Models::Plan::BasePlan)) - end + sig { params(_: T.nilable(Orb::Models::Plan::BasePlan)).returns(T.nilable(Orb::Models::Plan::BasePlan)) } def base_plan=(_) end @@ -120,14 +127,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -209,14 +219,16 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::Plan::PlanPhase])).returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) + params(_: T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) + .returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) end def plan_phases=(_) end sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, @@ -245,7 +257,8 @@ module Orb Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice - )] + ) + ] ) end def prices @@ -253,7 +266,8 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, @@ -282,37 +296,43 @@ module Orb Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice - )] - ).returns(T::Array[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::Array[ + 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 prices=(_) end @@ -352,13 +372,15 @@ module Orb sig do params( id: String, - adjustments: T::Array[T.any( + adjustments: T::Array[ + T.any( Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - )], + ) + ], base_plan: T.nilable(Orb::Models::Plan::BasePlan), base_plan_id: T.nilable(String), created_at: Time, @@ -383,7 +405,8 @@ module Orb name: String, net_terms: T.nilable(Integer), plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), - prices: T::Array[T.any( + prices: T::Array[ + T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, @@ -412,12 +435,14 @@ module Orb Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice - )], + ) + ], product: Orb::Models::Plan::Product, status: Symbol, trial_config: Orb::Models::Plan::TrialConfig, version: Integer - ).void + ) + .void end def initialize( id:, @@ -448,72 +473,81 @@ module Orb end sig do - override.returns( - { - id: String, - adjustments: T::Array[T.any( - Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - )], - base_plan: T.nilable(Orb::Models::Plan::BasePlan), - base_plan_id: T.nilable(String), - created_at: Time, - currency: String, - default_invoice_memo: T.nilable(String), - description: String, - discount: T.nilable( + override + .returns( + { + id: String, + adjustments: T::Array[ T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment ) - ), - external_plan_id: T.nilable(String), - invoicing_currency: String, - maximum: T.nilable(Orb::Models::Plan::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Plan::Minimum), - minimum_amount: T.nilable(String), - name: String, - net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), - prices: T::Array[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 - )], - product: Orb::Models::Plan::Product, - status: Symbol, - trial_config: Orb::Models::Plan::TrialConfig, - version: Integer - } - ) + ], + base_plan: T.nilable(Orb::Models::Plan::BasePlan), + base_plan_id: T.nilable(String), + created_at: Time, + currency: String, + default_invoice_memo: T.nilable(String), + description: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_plan_id: T.nilable(String), + invoicing_currency: String, + maximum: T.nilable(Orb::Models::Plan::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Plan::Minimum), + minimum_amount: T.nilable(String), + name: String, + net_terms: T.nilable(Integer), + plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), + prices: T::Array[ + 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 + ) + ], + product: Orb::Models::Plan::Product, + status: Symbol, + trial_config: Orb::Models::Plan::TrialConfig, + version: Integer + } + ) end def to_hash end @@ -587,7 +621,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -601,17 +636,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -683,7 +719,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -697,17 +734,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -779,7 +817,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -793,17 +832,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -884,7 +924,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -899,18 +940,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -982,7 +1024,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -996,32 +1039,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1165,14 +1204,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -1198,7 +1240,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Maximum)).returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) + params(_: T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) + .returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) end def maximum=(_) end @@ -1216,7 +1259,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Minimum)).returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) + params(_: T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) + .returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) end def minimum=(_) end @@ -1265,7 +1309,8 @@ module Orb minimum_amount: T.nilable(String), name: String, order: Integer - ).void + ) + .void end def initialize( id:, @@ -1283,28 +1328,29 @@ module Orb end sig do - override.returns( - { - id: String, - description: T.nilable(String), - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), - maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), - minimum_amount: T.nilable(String), - name: String, - order: Integer - } - ) + override + .returns( + { + id: String, + description: T.nilable(String), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + duration: T.nilable(Integer), + duration_unit: T.nilable(Symbol), + maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), + minimum_amount: T.nilable(String), + name: String, + order: Integer + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 09f762be..fee6b228 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -24,7 +24,8 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, @@ -50,7 +51,8 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )] + ) + ] ) end def prices @@ -58,7 +60,8 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, @@ -84,34 +87,40 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )] - ).returns(T::Array[T.any( - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice + ) + ] + ) end def prices=(_) end @@ -137,12 +146,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -167,7 +172,8 @@ module Orb params( currency: String, name: String, - prices: T::Array[T.any( + prices: T::Array[ + T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, @@ -193,14 +199,16 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )], + ) + ], default_invoice_memo: T.nilable(String), external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), status: Symbol, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( currency:, @@ -216,45 +224,48 @@ module Orb end sig do - override.returns( - { - currency: String, - name: String, - prices: T::Array[T.any( - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )], - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - status: Symbol, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: String, + name: String, + prices: T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice + ) + ], + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + status: Symbol, + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -300,7 +311,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) end def unit_config=(_) end @@ -321,14 +333,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -373,14 +384,13 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -390,12 +400,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -417,7 +423,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -439,25 +446,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -608,7 +616,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) end def package_config=(_) end @@ -629,14 +638,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -681,16 +689,15 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -700,12 +707,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -727,7 +730,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -749,25 +753,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -910,7 +915,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) end def matrix_config=(_) end @@ -947,14 +953,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -999,16 +1004,15 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -1018,12 +1022,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1045,7 +1045,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1067,25 +1068,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1122,14 +1124,13 @@ module Orb def dimensions=(_) end - sig do - returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) - end + sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) } def matrix_values end sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]).returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) + params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) end def matrix_values=(_) end @@ -1139,19 +1140,21 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - ).void + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + } + ) end def to_hash end @@ -1296,7 +1299,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) end def tiered_config=(_) end @@ -1317,14 +1321,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -1369,16 +1372,15 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -1388,12 +1390,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1415,7 +1413,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1437,25 +1436,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1476,26 +1476,24 @@ module Orb end class TieredConfig < Orb::BaseModel - sig do - returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) - end + sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) } def tiers end sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]).returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) + params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) end def tiers=(_) end - sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]).void - end + sig { params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]).void } def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]}) + override + .returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]}) end def to_hash end @@ -1648,7 +1646,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) end def tiered_bps_config=(_) end @@ -1669,16 +1668,15 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -1724,7 +1722,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration end @@ -1732,7 +1732,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration=(_) end @@ -1742,12 +1745,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1769,7 +1768,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1791,25 +1791,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1830,14 +1831,13 @@ module Orb end class TieredBpsConfig < Orb::BaseModel - sig do - returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) - end + sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) } def tiers end sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]).returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) + params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) end def tiers=(_) end @@ -1845,13 +1845,17 @@ module Orb sig do params( tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + {tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]} + ) end def to_hash end @@ -1895,20 +1899,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -1996,7 +2002,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) end def bps_config=(_) end @@ -2049,14 +2056,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -2101,14 +2107,13 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -2118,12 +2123,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2145,7 +2146,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -2167,25 +2169,26 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -2312,7 +2315,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) end def bulk_bps_config=(_) end @@ -2365,14 +2369,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -2417,16 +2420,15 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -2436,12 +2438,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2463,7 +2461,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -2485,50 +2484,52 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel - sig do - returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) - end + sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) } def tiers end sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]).returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) + params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) end def tiers=(_) end sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]).void + params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]}) end def to_hash end @@ -2678,7 +2679,8 @@ module Orb end sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig).returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) + params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) + .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) end def bulk_config=(_) end @@ -2731,14 +2733,13 @@ module Orb def billed_in_advance=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) } def billing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -2783,14 +2784,13 @@ module Orb def invoice_grouping_key=(_) end - sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -2800,12 +2800,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2827,7 +2823,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -2849,50 +2846,49 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel - sig do - returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) - end + sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) } def tiers end sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]).returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) + params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) end def tiers=(_) end - sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]).void - end + sig { params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]).void } def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]}) + override + .returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]}) end def to_hash end @@ -3072,15 +3068,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3126,15 +3133,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3144,12 +3162,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3162,16 +3176,21 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -3193,25 +3212,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -3364,7 +3388,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -3372,7 +3398,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -3418,7 +3447,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration end @@ -3426,7 +3457,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration=(_) end @@ -3436,12 +3470,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3463,7 +3493,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -3485,25 +3516,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -3656,7 +3688,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -3664,7 +3698,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -3710,15 +3747,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3728,12 +3776,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3752,10 +3796,13 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -3777,25 +3824,28 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -3948,7 +3998,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -3956,7 +4008,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -4002,7 +4057,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration end @@ -4010,7 +4067,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) + ) end def invoicing_cycle_configuration=(_) end @@ -4020,12 +4080,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4047,7 +4103,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4069,25 +4126,26 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4240,15 +4298,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4294,15 +4363,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4312,12 +4392,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4330,16 +4406,21 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4361,25 +4442,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4532,7 +4618,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -4540,7 +4628,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -4586,15 +4677,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4604,12 +4706,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4628,10 +4726,13 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4653,25 +4754,28 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4824,7 +4928,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -4832,7 +4938,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -4878,15 +4987,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4896,12 +5016,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4920,10 +5036,13 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4945,25 +5064,28 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5116,7 +5238,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -5124,7 +5248,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -5170,15 +5297,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5188,12 +5326,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5212,10 +5346,13 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5237,25 +5374,28 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5408,15 +5548,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5462,15 +5613,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5480,12 +5642,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5498,16 +5656,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5529,25 +5692,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5700,15 +5868,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5754,15 +5933,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5772,12 +5962,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5790,16 +5976,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5821,25 +6012,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5992,15 +6188,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6046,15 +6253,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6064,12 +6282,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6082,16 +6296,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6113,25 +6332,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6284,7 +6508,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration end @@ -6292,7 +6518,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration)) + ) + .returns( + T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) + ) end def billing_cycle_configuration=(_) end @@ -6338,15 +6567,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6356,12 +6596,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6380,10 +6616,13 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -6405,25 +6644,28 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6576,15 +6818,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6630,15 +6883,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6648,12 +6912,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6666,16 +6926,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6697,25 +6962,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6868,15 +7138,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6922,15 +7203,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6940,12 +7232,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6958,16 +7246,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6989,25 +7282,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7160,15 +7458,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7214,15 +7523,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7232,12 +7552,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7250,16 +7566,21 @@ module Orb scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7281,25 +7602,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7452,15 +7778,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7506,15 +7843,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7524,12 +7872,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7542,16 +7886,21 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7573,25 +7922,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7744,15 +8098,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7798,15 +8163,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7816,12 +8192,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7834,16 +8206,21 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7865,25 +8242,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7979,35 +8361,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice], - [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice] - ] - ) + override + .returns( + [[Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index 44936383..87934cb5 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -72,7 +72,8 @@ module Orb limit: Integer, status: Symbol, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -87,18 +88,19 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - status: Symbol, - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + status: Symbol, + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index 9c963df1..6c917c46 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -19,12 +19,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -34,19 +30,21 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(external_plan_id: nil, metadata: nil, request_options: {}) end sig do - override.returns( - { - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi index c2c2faf6..135da52e 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi @@ -20,12 +20,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -35,19 +31,21 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(external_plan_id: nil, metadata: nil, request_options: {}) end sig do - override.returns( - { - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index 276ef99e..10186518 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -19,7 +19,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) end def billable_metric=(_) end @@ -29,7 +30,8 @@ module Orb end sig do - params(_: Orb::Models::Price::UnitPrice::BillingCycleConfiguration).returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::UnitPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -63,7 +65,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -101,14 +104,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -134,7 +140,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -152,7 +159,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Maximum)).returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) end def maximum=(_) end @@ -178,7 +186,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Minimum)).returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) end def minimum=(_) end @@ -227,9 +236,7 @@ module Orb def unit_config end - sig do - params(_: Orb::Models::Price::UnitPrice::UnitConfig).returns(Orb::Models::Price::UnitPrice::UnitConfig) - end + sig { params(_: Orb::Models::Price::UnitPrice::UnitConfig).returns(Orb::Models::Price::UnitPrice::UnitConfig) } def unit_config=(_) end @@ -238,7 +245,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -276,7 +284,8 @@ module Orb unit_config: Orb::Models::Price::UnitPrice::UnitConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -307,41 +316,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_config: Orb::Models::Price::UnitPrice::UnitConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_config: Orb::Models::Price::UnitPrice::UnitConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -627,7 +637,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) end def billable_metric=(_) end @@ -637,7 +648,8 @@ module Orb end sig do - params(_: Orb::Models::Price::PackagePrice::BillingCycleConfiguration).returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::PackagePrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -671,7 +683,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) end def credit_allocation=(_) end @@ -709,14 +722,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -742,7 +758,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -751,9 +768,7 @@ module Orb def item end - sig do - params(_: Orb::Models::Price::PackagePrice::Item).returns(Orb::Models::Price::PackagePrice::Item) - end + sig { params(_: Orb::Models::Price::PackagePrice::Item).returns(Orb::Models::Price::PackagePrice::Item) } def item=(_) end @@ -762,7 +777,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Maximum)).returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) end def maximum=(_) end @@ -788,7 +804,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Minimum)).returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) end def minimum=(_) end @@ -822,7 +839,8 @@ module Orb end sig do - params(_: Orb::Models::Price::PackagePrice::PackageConfig).returns(Orb::Models::Price::PackagePrice::PackageConfig) + params(_: Orb::Models::Price::PackagePrice::PackageConfig) + .returns(Orb::Models::Price::PackagePrice::PackageConfig) end def package_config=(_) end @@ -848,7 +866,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -886,7 +905,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -917,41 +937,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::PackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::PackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::PackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_config: Orb::Models::Price::PackagePrice::PackageConfig, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -1245,7 +1266,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) end def billable_metric=(_) end @@ -1255,7 +1277,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration).returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -1289,7 +1312,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -1327,14 +1351,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -1360,7 +1387,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -1369,9 +1397,7 @@ module Orb def item end - sig do - params(_: Orb::Models::Price::MatrixPrice::Item).returns(Orb::Models::Price::MatrixPrice::Item) - end + sig { params(_: Orb::Models::Price::MatrixPrice::Item).returns(Orb::Models::Price::MatrixPrice::Item) } def item=(_) end @@ -1380,7 +1406,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixPrice::MatrixConfig).returns(Orb::Models::Price::MatrixPrice::MatrixConfig) + params(_: Orb::Models::Price::MatrixPrice::MatrixConfig) + .returns(Orb::Models::Price::MatrixPrice::MatrixConfig) end def matrix_config=(_) end @@ -1390,7 +1417,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Maximum)).returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) end def maximum=(_) end @@ -1416,7 +1444,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Minimum)).returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) end def minimum=(_) end @@ -1466,7 +1495,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -1504,7 +1534,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -1535,41 +1566,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixPrice::Item, - matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, - maximum: T.nilable(Orb::Models::Price::MatrixPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixPrice::Item, + matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, + maximum: T.nilable(Orb::Models::Price::MatrixPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -1755,7 +1787,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]).returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) + params(_: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) + .returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) end def matrix_values=(_) end @@ -1765,19 +1798,21 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - ).void + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + } + ) end def to_hash end @@ -1913,7 +1948,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) end def billable_metric=(_) end @@ -1923,7 +1959,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -1957,7 +1994,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -1995,14 +2033,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -2028,7 +2069,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -2037,9 +2079,7 @@ module Orb def item end - sig do - params(_: Orb::Models::Price::TieredPrice::Item).returns(Orb::Models::Price::TieredPrice::Item) - end + sig { params(_: Orb::Models::Price::TieredPrice::Item).returns(Orb::Models::Price::TieredPrice::Item) } def item=(_) end @@ -2048,7 +2088,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) end def maximum=(_) end @@ -2074,7 +2115,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) end def minimum=(_) end @@ -2124,7 +2166,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPrice::TieredConfig).returns(Orb::Models::Price::TieredPrice::TieredConfig) + params(_: Orb::Models::Price::TieredPrice::TieredConfig) + .returns(Orb::Models::Price::TieredPrice::TieredConfig) end def tiered_config=(_) end @@ -2134,7 +2177,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -2172,7 +2216,8 @@ module Orb tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2203,41 +2248,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -2470,7 +2516,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) + params(_: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) + .returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) end def tiers=(_) end @@ -2559,7 +2606,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) end def billable_metric=(_) end @@ -2569,7 +2617,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -2603,7 +2652,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -2641,14 +2691,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -2674,7 +2727,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -2683,9 +2737,7 @@ module Orb def item end - sig do - params(_: Orb::Models::Price::TieredBpsPrice::Item).returns(Orb::Models::Price::TieredBpsPrice::Item) - end + sig { params(_: Orb::Models::Price::TieredBpsPrice::Item).returns(Orb::Models::Price::TieredBpsPrice::Item) } def item=(_) end @@ -2694,7 +2746,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) end def maximum=(_) end @@ -2720,7 +2773,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) end def minimum=(_) end @@ -2770,7 +2824,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig).returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) + params(_: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) + .returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) end def tiered_bps_config=(_) end @@ -2780,7 +2835,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -2818,7 +2874,8 @@ module Orb tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -2849,41 +2906,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredBpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -3116,7 +3174,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]).returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) + params(_: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) + .returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) end def tiers=(_) end @@ -3125,9 +3184,7 @@ module Orb def initialize(tiers:) end - sig do - override.returns({tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]}) - end + sig { override.returns({tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]}) } def to_hash end @@ -3170,20 +3227,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -3231,7 +3290,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) end def billable_metric=(_) end @@ -3241,7 +3301,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BpsPrice::BillingCycleConfiguration).returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::BpsPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -3250,9 +3311,7 @@ module Orb def bps_config end - sig do - params(_: Orb::Models::Price::BpsPrice::BpsConfig).returns(Orb::Models::Price::BpsPrice::BpsConfig) - end + sig { params(_: Orb::Models::Price::BpsPrice::BpsConfig).returns(Orb::Models::Price::BpsPrice::BpsConfig) } def bps_config=(_) end @@ -3285,7 +3344,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -3323,14 +3383,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -3356,7 +3419,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -3374,7 +3438,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Maximum)).returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) end def maximum=(_) end @@ -3400,7 +3465,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Minimum)).returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) end def minimum=(_) end @@ -3450,7 +3516,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -3488,7 +3555,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -3519,41 +3587,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, - bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, + bps_config: Orb::Models::Price::BpsPrice::BpsConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::BpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -3847,7 +3916,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) end def billable_metric=(_) end @@ -3857,7 +3927,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration).returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -3867,7 +3938,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig).returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) + params(_: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) + .returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) end def bulk_bps_config=(_) end @@ -3901,7 +3973,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -3939,14 +4012,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -3972,7 +4048,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -3981,9 +4058,7 @@ module Orb def item end - sig do - params(_: Orb::Models::Price::BulkBpsPrice::Item).returns(Orb::Models::Price::BulkBpsPrice::Item) - end + sig { params(_: Orb::Models::Price::BulkBpsPrice::Item).returns(Orb::Models::Price::BulkBpsPrice::Item) } def item=(_) end @@ -3992,7 +4067,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) end def maximum=(_) end @@ -4018,7 +4094,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) end def minimum=(_) end @@ -4068,7 +4145,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -4106,7 +4184,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -4137,41 +4216,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, + bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkBpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -4237,7 +4317,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) + params(_: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) + .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) end def tiers=(_) end @@ -4503,7 +4584,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) end def billable_metric=(_) end @@ -4513,7 +4595,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BulkPrice::BillingCycleConfiguration).returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::BulkPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -4522,9 +4605,7 @@ module Orb def bulk_config end - sig do - params(_: Orb::Models::Price::BulkPrice::BulkConfig).returns(Orb::Models::Price::BulkPrice::BulkConfig) - end + sig { params(_: Orb::Models::Price::BulkPrice::BulkConfig).returns(Orb::Models::Price::BulkPrice::BulkConfig) } def bulk_config=(_) end @@ -4557,7 +4638,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -4595,14 +4677,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -4628,7 +4713,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -4646,7 +4732,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Maximum)).returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) end def maximum=(_) end @@ -4672,7 +4759,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Minimum)).returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) end def minimum=(_) end @@ -4722,7 +4810,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -4760,7 +4849,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -4791,41 +4881,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, + bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -4891,7 +4982,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) + params(_: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) + .returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) end def tiers=(_) end @@ -5139,7 +5231,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) end def billable_metric=(_) end @@ -5149,7 +5242,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration).returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -5183,7 +5277,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -5221,14 +5316,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -5254,7 +5352,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -5264,7 +5363,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::Item).returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) + params(_: Orb::Models::Price::ThresholdTotalAmountPrice::Item) + .returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) end def item=(_) end @@ -5274,7 +5374,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) end def maximum=(_) end @@ -5300,7 +5401,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) end def minimum=(_) end @@ -5353,14 +5455,13 @@ module Orb def threshold_total_amount_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -5398,7 +5499,8 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -5429,41 +5531,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, - maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, + maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -5731,7 +5834,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) end def billable_metric=(_) end @@ -5741,7 +5845,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -5775,7 +5880,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) end def credit_allocation=(_) end @@ -5813,14 +5919,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -5846,7 +5955,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -5856,7 +5966,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPackagePrice::Item).returns(Orb::Models::Price::TieredPackagePrice::Item) + params(_: Orb::Models::Price::TieredPackagePrice::Item) + .returns(Orb::Models::Price::TieredPackagePrice::Item) end def item=(_) end @@ -5866,7 +5977,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) end def maximum=(_) end @@ -5892,7 +6004,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) end def minimum=(_) end @@ -5950,7 +6063,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -5988,7 +6102,8 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -6019,41 +6134,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_package_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -6321,7 +6437,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) end def billable_metric=(_) end @@ -6331,7 +6448,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration).returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -6365,7 +6483,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -6403,14 +6522,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -6444,7 +6566,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -6454,7 +6577,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedTieredPrice::Item).returns(Orb::Models::Price::GroupedTieredPrice::Item) + params(_: Orb::Models::Price::GroupedTieredPrice::Item) + .returns(Orb::Models::Price::GroupedTieredPrice::Item) end def item=(_) end @@ -6464,7 +6588,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) end def maximum=(_) end @@ -6490,7 +6615,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) end def minimum=(_) end @@ -6540,7 +6666,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -6578,7 +6705,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -6609,41 +6737,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedTieredPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -6911,7 +7040,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) end def billable_metric=(_) end @@ -6921,7 +7051,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -6955,7 +7086,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -6993,14 +7125,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -7026,7 +7161,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -7036,7 +7172,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::Item).returns(Orb::Models::Price::TieredWithMinimumPrice::Item) + params(_: Orb::Models::Price::TieredWithMinimumPrice::Item) + .returns(Orb::Models::Price::TieredWithMinimumPrice::Item) end def item=(_) end @@ -7046,7 +7183,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) end def maximum=(_) end @@ -7072,7 +7210,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) end def minimum=(_) end @@ -7130,7 +7269,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -7168,7 +7308,8 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -7199,41 +7340,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredWithMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -7501,7 +7643,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) end def billable_metric=(_) end @@ -7511,7 +7654,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -7545,7 +7689,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -7583,14 +7728,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -7611,14 +7759,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -7628,7 +7775,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::Item).returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) + params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::Item) + .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) end def item=(_) end @@ -7638,7 +7786,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) end def maximum=(_) end @@ -7664,7 +7813,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) end def minimum=(_) end @@ -7717,14 +7867,13 @@ module Orb def tiered_package_with_minimum_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -7762,7 +7911,8 @@ module Orb tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -7793,41 +7943,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -8095,7 +8246,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) end def billable_metric=(_) end @@ -8105,7 +8257,8 @@ module Orb end sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -8139,7 +8292,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -8177,14 +8331,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -8205,14 +8362,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -8222,7 +8378,8 @@ module Orb end sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::Item).returns(Orb::Models::Price::PackageWithAllocationPrice::Item) + params(_: Orb::Models::Price::PackageWithAllocationPrice::Item) + .returns(Orb::Models::Price::PackageWithAllocationPrice::Item) end def item=(_) end @@ -8232,7 +8389,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) end def maximum=(_) end @@ -8258,7 +8416,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) end def minimum=(_) end @@ -8311,14 +8470,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -8356,7 +8514,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -8387,41 +8546,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackageWithAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::PackageWithAllocationPrice::Item, + maximum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -8689,7 +8849,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) end def billable_metric=(_) end @@ -8699,7 +8860,8 @@ module Orb end sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration).returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -8733,7 +8895,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -8771,14 +8934,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -8804,7 +8970,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -8814,7 +8981,8 @@ module Orb end sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::Item).returns(Orb::Models::Price::UnitWithPercentPrice::Item) + params(_: Orb::Models::Price::UnitWithPercentPrice::Item) + .returns(Orb::Models::Price::UnitWithPercentPrice::Item) end def item=(_) end @@ -8824,7 +8992,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) end def maximum=(_) end @@ -8850,7 +9019,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) end def minimum=(_) end @@ -8908,7 +9078,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -8946,7 +9117,8 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -8977,41 +9149,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithPercentPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitWithPercentPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_with_percent_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -9279,7 +9452,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) end def billable_metric=(_) end @@ -9289,7 +9463,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -9323,7 +9498,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -9361,14 +9537,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -9394,7 +9573,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -9404,7 +9584,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::Item).returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) + params(_: Orb::Models::Price::MatrixWithAllocationPrice::Item) + .returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) end def item=(_) end @@ -9414,7 +9595,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig).returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) + params(_: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) + .returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) end def matrix_with_allocation_config=(_) end @@ -9424,7 +9606,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) end def maximum=(_) end @@ -9450,7 +9633,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) end def minimum=(_) end @@ -9495,14 +9679,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -9540,7 +9723,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -9571,41 +9755,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithAllocationPrice::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, - maximum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixWithAllocationPrice::Item, + matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, + maximum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -9794,16 +9979,15 @@ module Orb def dimensions=(_) end - sig do - returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) - end + sig { returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) } def matrix_values end sig do params( _: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ).returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) + ) + .returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) end def matrix_values=(_) end @@ -9814,20 +9998,22 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ).void + ) + .void end def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } - ) + override + .returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + } + ) end def to_hash end @@ -9963,7 +10149,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) end def billable_metric=(_) end @@ -9973,7 +10160,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -10007,7 +10195,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -10045,14 +10234,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -10078,7 +10270,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -10088,7 +10281,8 @@ module Orb end sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::Item).returns(Orb::Models::Price::TieredWithProrationPrice::Item) + params(_: Orb::Models::Price::TieredWithProrationPrice::Item) + .returns(Orb::Models::Price::TieredWithProrationPrice::Item) end def item=(_) end @@ -10098,7 +10292,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) end def maximum=(_) end @@ -10124,7 +10319,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) end def minimum=(_) end @@ -10177,14 +10373,13 @@ module Orb def tiered_with_proration_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -10222,7 +10417,8 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -10253,41 +10449,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -10555,7 +10752,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) end def billable_metric=(_) end @@ -10565,7 +10763,8 @@ module Orb end sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -10599,7 +10798,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -10637,14 +10837,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -10670,7 +10873,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -10680,7 +10884,8 @@ module Orb end sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::Item).returns(Orb::Models::Price::UnitWithProrationPrice::Item) + params(_: Orb::Models::Price::UnitWithProrationPrice::Item) + .returns(Orb::Models::Price::UnitWithProrationPrice::Item) end def item=(_) end @@ -10690,7 +10895,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) end def maximum=(_) end @@ -10716,7 +10922,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) end def minimum=(_) end @@ -10774,7 +10981,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -10812,7 +11020,8 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -10843,41 +11052,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -11145,7 +11355,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) end def billable_metric=(_) end @@ -11155,7 +11366,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -11189,7 +11401,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -11227,14 +11440,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -11268,7 +11484,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -11278,7 +11495,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::Item).returns(Orb::Models::Price::GroupedAllocationPrice::Item) + params(_: Orb::Models::Price::GroupedAllocationPrice::Item) + .returns(Orb::Models::Price::GroupedAllocationPrice::Item) end def item=(_) end @@ -11288,7 +11506,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) end def maximum=(_) end @@ -11314,7 +11533,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) end def minimum=(_) end @@ -11364,7 +11584,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -11402,7 +11623,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -11433,41 +11655,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_allocation_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedAllocationPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -11735,7 +11958,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) end def billable_metric=(_) end @@ -11745,7 +11969,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration).returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -11779,7 +12004,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -11817,14 +12043,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -11853,14 +12082,13 @@ module Orb def grouped_with_prorated_minimum_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -11870,7 +12098,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item).returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) + params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) + .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) end def item=(_) end @@ -11880,7 +12109,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) end def maximum=(_) end @@ -11906,7 +12136,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) end def minimum=(_) end @@ -11951,14 +12182,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -11996,7 +12226,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -12027,41 +12258,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -12329,7 +12561,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) end def billable_metric=(_) end @@ -12339,7 +12572,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration).returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -12373,7 +12607,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -12411,14 +12646,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -12447,14 +12685,13 @@ module Orb def grouped_with_metered_minimum_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -12464,7 +12701,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item).returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) + params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) + .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) end def item=(_) end @@ -12474,7 +12712,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) end def maximum=(_) end @@ -12500,7 +12739,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) end def minimum=(_) end @@ -12545,14 +12785,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -12590,7 +12829,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -12621,41 +12861,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -12923,7 +13164,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) end def billable_metric=(_) end @@ -12933,7 +13175,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration).returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -12967,7 +13210,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) end def credit_allocation=(_) end @@ -13005,14 +13249,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -13033,14 +13280,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -13050,7 +13296,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::Item).returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) + params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::Item) + .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) end def item=(_) end @@ -13068,7 +13315,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) end def maximum=(_) end @@ -13094,7 +13342,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) end def minimum=(_) end @@ -13139,14 +13388,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -13184,7 +13432,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -13215,41 +13464,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -13517,7 +13767,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) end def billable_metric=(_) end @@ -13527,7 +13778,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration).returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -13569,7 +13821,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -13607,14 +13860,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -13640,7 +13896,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -13650,7 +13907,8 @@ module Orb end sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::Item).returns(Orb::Models::Price::BulkWithProrationPrice::Item) + params(_: Orb::Models::Price::BulkWithProrationPrice::Item) + .returns(Orb::Models::Price::BulkWithProrationPrice::Item) end def item=(_) end @@ -13660,7 +13918,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) end def maximum=(_) end @@ -13686,7 +13945,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) end def minimum=(_) end @@ -13736,7 +13996,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -13774,7 +14035,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -13805,41 +14067,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -14107,7 +14370,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) end def billable_metric=(_) end @@ -14117,7 +14381,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration).returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -14151,7 +14416,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) end def credit_allocation=(_) end @@ -14189,14 +14455,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -14230,7 +14499,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -14240,7 +14510,8 @@ module Orb end sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::Item).returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) + params(_: Orb::Models::Price::GroupedTieredPackagePrice::Item) + .returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) end def item=(_) end @@ -14250,7 +14521,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) end def maximum=(_) end @@ -14276,7 +14548,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) end def minimum=(_) end @@ -14321,14 +14594,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -14366,7 +14638,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -14397,41 +14670,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedTieredPackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -14699,7 +14973,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) end def billable_metric=(_) end @@ -14709,7 +14984,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration).returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -14743,7 +15019,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) end def credit_allocation=(_) end @@ -14781,14 +15058,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -14809,14 +15089,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -14826,7 +15105,8 @@ module Orb end sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::Item).returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) + params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::Item) + .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) end def item=(_) end @@ -14844,7 +15124,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) end def maximum=(_) end @@ -14870,7 +15151,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) end def minimum=(_) end @@ -14915,14 +15197,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -14960,7 +15241,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -14991,41 +15273,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -15293,7 +15576,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) end def billable_metric=(_) end @@ -15303,7 +15587,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration).returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -15337,7 +15622,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -15375,14 +15661,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -15403,14 +15692,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -15420,7 +15708,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item).returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) + params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) + .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) end def item=(_) end @@ -15430,7 +15719,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) end def maximum=(_) end @@ -15456,7 +15746,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) end def minimum=(_) end @@ -15509,16 +15800,15 @@ module Orb def scalable_matrix_with_unit_pricing_config=(_) end - sig do - returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do params( _: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) - ).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) + ) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -15556,7 +15846,8 @@ module Orb scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -15587,41 +15878,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, + maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -15889,7 +16181,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) end def billable_metric=(_) end @@ -15899,7 +16192,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration).returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -15933,7 +16227,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -15971,14 +16266,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -15999,16 +16297,15 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do params( _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) + ) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -16018,7 +16315,8 @@ module Orb end sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item).returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) + params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) + .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) end def item=(_) end @@ -16028,7 +16326,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) end def maximum=(_) end @@ -16054,7 +16353,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) end def minimum=(_) end @@ -16108,7 +16408,9 @@ module Orb end sig do - returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration)) + returns( + T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + ) end def dimensional_price_configuration end @@ -16116,7 +16418,10 @@ module Orb sig do params( _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) - ).returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration)) + ) + .returns( + T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + ) end def dimensional_price_configuration=(_) end @@ -16154,7 +16459,8 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -16185,41 +16491,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, + maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -16487,7 +16794,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) end def billable_metric=(_) end @@ -16497,7 +16805,8 @@ module Orb end sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration).returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) + params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) + .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) end def billing_cycle_configuration=(_) end @@ -16531,7 +16840,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) end def credit_allocation=(_) end @@ -16577,14 +16887,17 @@ module Orb Orb::Models::AmountDiscount ) ) - ).returns(T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) end def discount=(_) end @@ -16605,14 +16918,13 @@ module Orb def fixed_price_quantity=(_) end - sig do - returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) } def invoicing_cycle_configuration end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -16622,7 +16934,8 @@ module Orb end sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::Item).returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) + params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::Item) + .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) end def item=(_) end @@ -16632,7 +16945,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) end def maximum=(_) end @@ -16658,7 +16972,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) end def minimum=(_) end @@ -16703,14 +17018,13 @@ module Orb def price_type=(_) end - sig do - returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) - end + sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) } def dimensional_price_configuration end sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)).returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) + params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) + .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) end def dimensional_price_configuration=(_) end @@ -16748,7 +17062,8 @@ module Orb price_type: Symbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration), model_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -16779,41 +17094,42 @@ module Orb end sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, - maximum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration) - } - ) + override + .returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, + maximum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration) + } + ) end def to_hash end @@ -17068,38 +17384,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::Price::UnitPrice], - [Symbol, Orb::Models::Price::PackagePrice], - [Symbol, Orb::Models::Price::MatrixPrice], - [Symbol, Orb::Models::Price::TieredPrice], - [Symbol, Orb::Models::Price::TieredBpsPrice], - [Symbol, Orb::Models::Price::BpsPrice], - [Symbol, Orb::Models::Price::BulkBpsPrice], - [Symbol, Orb::Models::Price::BulkPrice], - [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice], - [Symbol, Orb::Models::Price::TieredPackagePrice], - [Symbol, Orb::Models::Price::GroupedTieredPrice], - [Symbol, Orb::Models::Price::TieredWithMinimumPrice], - [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice], - [Symbol, Orb::Models::Price::PackageWithAllocationPrice], - [Symbol, Orb::Models::Price::UnitWithPercentPrice], - [Symbol, Orb::Models::Price::MatrixWithAllocationPrice], - [Symbol, Orb::Models::Price::TieredWithProrationPrice], - [Symbol, Orb::Models::Price::UnitWithProrationPrice], - [Symbol, Orb::Models::Price::GroupedAllocationPrice], - [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice], - [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice], - [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice], - [Symbol, Orb::Models::Price::BulkWithProrationPrice], - [Symbol, Orb::Models::Price::GroupedTieredPackagePrice], - [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice], - [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice], - [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice], - [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Price::UnitPrice], [Symbol, Orb::Models::Price::PackagePrice], [Symbol, Orb::Models::Price::MatrixPrice], [Symbol, Orb::Models::Price::TieredPrice], [Symbol, Orb::Models::Price::TieredBpsPrice], [Symbol, Orb::Models::Price::BpsPrice], [Symbol, Orb::Models::Price::BulkBpsPrice], [Symbol, Orb::Models::Price::BulkPrice], [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice], [Symbol, Orb::Models::Price::TieredPackagePrice], [Symbol, Orb::Models::Price::GroupedTieredPrice], [Symbol, Orb::Models::Price::TieredWithMinimumPrice], [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice], [Symbol, Orb::Models::Price::PackageWithAllocationPrice], [Symbol, Orb::Models::Price::UnitWithPercentPrice], [Symbol, Orb::Models::Price::MatrixWithAllocationPrice], [Symbol, Orb::Models::Price::TieredWithProrationPrice], [Symbol, Orb::Models::Price::UnitWithProrationPrice], [Symbol, Orb::Models::Price::GroupedAllocationPrice], [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice], [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice], [Symbol, Orb::Models::Price::BulkWithProrationPrice], [Symbol, Orb::Models::Price::GroupedTieredPackagePrice], [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice], [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index 94c3c5a9..1bae64a0 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -50,9 +50,7 @@ module Orb def unit_config end - sig do - params(_: Orb::Models::PriceCreateParams::UnitConfig).returns(Orb::Models::PriceCreateParams::UnitConfig) - end + sig { params(_: Orb::Models::PriceCreateParams::UnitConfig).returns(Orb::Models::PriceCreateParams::UnitConfig) } def unit_config=(_) end @@ -77,7 +75,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)).returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) end def billing_cycle_configuration=(_) end @@ -119,7 +118,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)).returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) + params(_: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) + .returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) end def invoicing_cycle_configuration=(_) end @@ -129,12 +129,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -144,7 +140,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::PackageConfig).returns(Orb::Models::PriceCreateParams::PackageConfig) + params(_: Orb::Models::PriceCreateParams::PackageConfig) + .returns(Orb::Models::PriceCreateParams::PackageConfig) end def package_config=(_) end @@ -154,7 +151,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::MatrixConfig).returns(Orb::Models::PriceCreateParams::MatrixConfig) + params(_: Orb::Models::PriceCreateParams::MatrixConfig) + .returns(Orb::Models::PriceCreateParams::MatrixConfig) end def matrix_config=(_) end @@ -164,7 +162,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig).returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) + params(_: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) + .returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) end def matrix_with_allocation_config=(_) end @@ -174,7 +173,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::TieredConfig).returns(Orb::Models::PriceCreateParams::TieredConfig) + params(_: Orb::Models::PriceCreateParams::TieredConfig) + .returns(Orb::Models::PriceCreateParams::TieredConfig) end def tiered_config=(_) end @@ -184,7 +184,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::TieredBpsConfig).returns(Orb::Models::PriceCreateParams::TieredBpsConfig) + params(_: Orb::Models::PriceCreateParams::TieredBpsConfig) + .returns(Orb::Models::PriceCreateParams::TieredBpsConfig) end def tiered_bps_config=(_) end @@ -193,9 +194,7 @@ module Orb def bps_config end - sig do - params(_: Orb::Models::PriceCreateParams::BpsConfig).returns(Orb::Models::PriceCreateParams::BpsConfig) - end + sig { params(_: Orb::Models::PriceCreateParams::BpsConfig).returns(Orb::Models::PriceCreateParams::BpsConfig) } def bps_config=(_) end @@ -204,7 +203,8 @@ module Orb end sig do - params(_: Orb::Models::PriceCreateParams::BulkBpsConfig).returns(Orb::Models::PriceCreateParams::BulkBpsConfig) + params(_: Orb::Models::PriceCreateParams::BulkBpsConfig) + .returns(Orb::Models::PriceCreateParams::BulkBpsConfig) end def bulk_bps_config=(_) end @@ -213,9 +213,7 @@ module Orb def bulk_config end - sig do - params(_: Orb::Models::PriceCreateParams::BulkConfig).returns(Orb::Models::PriceCreateParams::BulkConfig) - end + sig { params(_: Orb::Models::PriceCreateParams::BulkConfig).returns(Orb::Models::PriceCreateParams::BulkConfig) } def bulk_config=(_) end @@ -416,7 +414,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( cadence:, @@ -466,53 +465,54 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - package_config: Orb::Models::PriceCreateParams::PackageConfig, - matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, - matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::PriceCreateParams::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + package_config: Orb::Models::PriceCreateParams::PackageConfig, + matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, + matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, + tiered_config: Orb::Models::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::Models::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::Models::PriceCreateParams::BulkConfig, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -682,7 +682,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]).returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) + params(_: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) + .returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) end def matrix_values=(_) end @@ -692,19 +693,21 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - ).void + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + } + ) end def to_hash end @@ -766,7 +769,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]).returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) + params(_: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) + .returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) end def matrix_values=(_) end @@ -777,20 +781,22 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - ).void + ) + .void end def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - } - ) + override + .returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + } + ) end def to_hash end @@ -828,7 +834,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) + params(_: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) + .returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) end def tiers=(_) end @@ -882,7 +889,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) + params(_: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) + .returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) end def tiers=(_) end @@ -934,20 +942,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -986,7 +996,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) + params(_: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) + .returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) end def tiers=(_) end @@ -1050,7 +1061,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) + params(_: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) + .returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) end def tiers=(_) end diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index 1d45383a..30182297 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -63,7 +63,8 @@ module Orb filter: T.nilable(String), grouping_keys: T::Array[String], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( timeframe_end:, @@ -77,17 +78,18 @@ module Orb end sig do - override.returns( - { - timeframe_end: Time, - timeframe_start: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - filter: T.nilable(String), - grouping_keys: T::Array[String], - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + timeframe_end: Time, + timeframe_start: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + filter: T.nilable(String), + grouping_keys: T::Array[String], + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/price_evaluate_response.rbi b/rbi/lib/orb/models/price_evaluate_response.rbi index 57953a3d..8f8b7722 100644 --- a/rbi/lib/orb/models/price_evaluate_response.rbi +++ b/rbi/lib/orb/models/price_evaluate_response.rbi @@ -7,9 +7,7 @@ module Orb def data end - sig do - params(_: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T::Array[Orb::Models::EvaluatePriceGroup]) - end + sig { params(_: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T::Array[Orb::Models::EvaluatePriceGroup]) } def data=(_) end diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index f1de7b93..ea37fe72 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -27,7 +27,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index 83949413..9509122d 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -11,12 +11,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -25,18 +21,18 @@ module Orb params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(metadata: nil, request_options: {}) end sig do - override.returns( - { - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns({ + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + }) end def to_hash end diff --git a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi index 06b7db63..1fa729f9 100644 --- a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi @@ -12,12 +12,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -26,18 +22,18 @@ module Orb params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(metadata: nil, request_options: {}) end sig do - override.returns( - { - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override + .returns({ + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + }) end def to_hash end diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 092aec54..5a4d20bc 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Subscription::AdjustmentInterval]).returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) + params(_: T::Array[Orb::Models::Subscription::AdjustmentInterval]) + .returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::Subscription::BillingCycleAnchorConfiguration).returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) + params(_: Orb::Models::Subscription::BillingCycleAnchorConfiguration) + .returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,11 +99,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - )] + ) + ] ) end def discount_intervals @@ -109,16 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - )] - ).returns(T::Array[T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -136,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -154,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Subscription::MaximumInterval]).returns(T::Array[Orb::Models::Subscription::MaximumInterval]) + params(_: T::Array[Orb::Models::Subscription::MaximumInterval]) + .returns(T::Array[Orb::Models::Subscription::MaximumInterval]) end def maximum_intervals=(_) end @@ -172,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Subscription::MinimumInterval]).returns(T::Array[Orb::Models::Subscription::MinimumInterval]) + params(_: T::Array[Orb::Models::Subscription::MinimumInterval]) + .returns(T::Array[Orb::Models::Subscription::MinimumInterval]) end def minimum_intervals=(_) end @@ -198,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::Subscription::PriceInterval]).returns(T::Array[Orb::Models::Subscription::PriceInterval]) + params(_: T::Array[Orb::Models::Subscription::PriceInterval]) + .returns(T::Array[Orb::Models::Subscription::PriceInterval]) end def price_intervals=(_) end @@ -208,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::Subscription::RedeemedCoupon)).returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::Subscription::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -250,9 +266,13 @@ module Orb 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::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - )], + discount_intervals: T::Array[ + T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + ) + ], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -266,7 +286,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::Subscription::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -298,39 +319,42 @@ module Orb end sig do - override.returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::Subscription::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::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - )], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::Subscription::TrialInfo - } - ) + override + .returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::Subscription::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::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::Subscription::TrialInfo + } + ) end def to_hash end @@ -361,11 +385,22 @@ module Orb sig do params( _: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + ) + .returns( + T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) ) - ).returns(T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - )) end def adjustment=(_) end @@ -398,28 +433,38 @@ module Orb params( id: String, adjustment: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - id: String, - adjustment: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + id: String, + adjustment: T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -493,7 +538,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -507,17 +553,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -589,7 +636,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -603,17 +651,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -685,7 +734,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -699,17 +749,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -790,7 +841,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -805,18 +857,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -888,7 +941,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -902,47 +956,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1043,7 +1078,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1056,16 +1092,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1128,7 +1165,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1141,16 +1179,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1213,7 +1252,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1226,29 +1266,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [Symbol, Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval], - [Symbol, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval], - [Symbol, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] - ] - ) + override + .returns( + [[Symbol, Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1346,7 +1384,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1358,15 +1397,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1420,7 +1460,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1432,15 +1473,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1487,14 +1529,13 @@ module Orb def end_date=(_) end - sig do - returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) - end + sig { returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) } def fixed_fee_quantity_transitions end sig do - params(_: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])).returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) + params(_: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) + .returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) end def fixed_fee_quantity_transitions=(_) end @@ -1568,36 +1609,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1649,7 +1693,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1664,47 +1709,48 @@ module Orb end sig do - override.returns( - { - 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), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::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 - } - ) + override + .returns( + { + 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), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index 18fb42db..2070472d 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -36,7 +36,8 @@ module Orb allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( cancel_option:, @@ -47,14 +48,15 @@ module Orb end sig do - override.returns( - { - cancel_option: Symbol, - allow_invoice_credit_or_void: T.nilable(T::Boolean), - cancellation_date: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + cancel_option: Symbol, + allow_invoice_credit_or_void: T.nilable(T::Boolean), + cancellation_date: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 413a1690..4962b9ec 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,11 +99,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - )] + ) + ] ) end def discount_intervals @@ -109,14 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - )] - ).returns(T::Array[T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -134,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -152,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -170,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -196,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) end def price_intervals=(_) end @@ -206,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -232,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionCancelResponse::TrialInfo).returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) + params(_: Orb::Models::SubscriptionCancelResponse::TrialInfo) + .returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) end def trial_info=(_) end @@ -250,9 +269,13 @@ module Orb 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::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - )], + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + ) + ], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -266,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -298,37 +322,42 @@ module Orb end sig do - override.returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::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::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - )], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - } - ) + override + .returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::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::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo + } + ) end def to_hash end @@ -345,7 +374,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -355,11 +388,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) ) - ).returns(T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - )) end def adjustment=(_) end @@ -392,28 +436,38 @@ module Orb params( id: String, adjustment: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - id: String, - adjustment: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -487,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -501,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -583,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -597,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -679,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -693,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -784,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -799,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -882,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -896,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1037,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1050,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1122,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1135,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1207,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1220,32 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval - ], - [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval], - [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1343,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1355,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1417,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1429,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1485,7 +1533,9 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions end @@ -1493,7 +1543,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition])) + ) + .returns( + T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1567,36 +1620,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1648,7 +1704,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1663,47 +1720,48 @@ module Orb end sig do - override.returns( - { - 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), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::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 - } - ) + override + .returns( + { + 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), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 76e65869..46b7998c 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) end def add_adjustments=(_) end @@ -21,7 +22,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) end def add_prices=(_) end @@ -55,7 +57,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)).returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) + params(_: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) + .returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) end def billing_cycle_anchor_configuration=(_) end @@ -161,12 +164,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -216,7 +215,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) end def remove_adjustments=(_) end @@ -226,7 +226,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) end def remove_prices=(_) end @@ -236,7 +237,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) end def replace_adjustments=(_) end @@ -246,7 +248,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) end def replace_prices=(_) end @@ -300,7 +303,8 @@ module Orb start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( add_adjustments: nil, @@ -338,44 +342,42 @@ module Orb end sig do - override.returns( - { - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), - align_billing_with_subscription_start_date: T::Boolean, - auto_collection: T.nilable(T::Boolean), - aws_region: T.nilable(String), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - customer_id: T.nilable(String), - default_invoice_memo: T.nilable(String), - end_date: T.nilable(Time), - external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), - external_marketplace_reporting_id: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), - start_date: T.nilable(Time), - trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), + add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + align_billing_with_subscription_start_date: T::Boolean, + auto_collection: T.nilable(T::Boolean), + aws_region: T.nilable(String), + billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + customer_id: T.nilable(String), + default_invoice_memo: T.nilable(String), + end_date: T.nilable(Time), + external_customer_id: T.nilable(String), + external_marketplace: T.nilable(Symbol), + external_marketplace_reporting_id: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]), + remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]), + replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]), + replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), + start_date: T.nilable(Time), + trial_duration_days: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -404,9 +406,16 @@ module Orb Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum ) - ).returns(T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - )) + ) + .returns( + T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ) + ) end def adjustment=(_) end @@ -438,31 +447,37 @@ module Orb sig do params( adjustment: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) - ).void + ) + .void end def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) end sig do - override.returns( - { - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - ), - end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) - } - ) + override + .returns( + { + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ), + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) end def to_hash end @@ -509,7 +524,8 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -520,14 +536,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -572,7 +589,8 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -583,14 +601,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -635,7 +654,8 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -646,14 +666,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -707,7 +728,8 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -719,15 +741,16 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -772,7 +795,8 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -783,32 +807,25 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount - ], - [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount], - [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount], - [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum], - [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum]] + ) end private_class_method def self.variants end @@ -821,7 +838,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) + params(_: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) + .returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) end def allocation_price=(_) end @@ -831,7 +849,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) end def discounts=(_) end @@ -909,14 +928,51 @@ module Orb params( _: T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + .returns( + T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) ) ) - ).returns(T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - )) end def price=(_) end @@ -948,12 +1004,30 @@ module Orb plan_phase_order: T.nilable(Integer), price: T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice ) ), price_id: T.nilable(String), start_date: T.nilable(Time) - ).void + ) + .void end def initialize( allocation_price: nil, @@ -970,24 +1044,42 @@ module Orb end sig do - override.returns( - { - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - ) + override + .returns( + { + allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice), + discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) + } + ) end def to_hash end @@ -1037,14 +1129,13 @@ module Orb end sig do - override.returns( - { - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -1104,20 +1195,22 @@ module Orb amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ).void + ) + .void end def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do - override.returns( - { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override + .returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) end def to_hash end @@ -1171,14 +1264,13 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) } def unit_config end sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) + params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) + .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) end def unit_config=(_) end @@ -1200,15 +1292,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1254,15 +1357,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1272,12 +1386,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1298,17 +1408,22 @@ module Orb unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1331,26 +1446,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -1497,7 +1617,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig) + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config end @@ -1505,7 +1627,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config=(_) end @@ -1527,15 +1652,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1581,15 +1717,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1599,12 +1746,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1625,17 +1768,22 @@ module Orb package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1658,26 +1806,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -1815,16 +1968,15 @@ module Orb def item_id=(_) end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) } def matrix_config end sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + ) + .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) end def matrix_config=(_) end @@ -1862,15 +2014,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1916,15 +2079,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1934,12 +2108,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1960,17 +2130,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1993,26 +2168,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -2050,15 +2230,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -2067,20 +2258,26 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + } + ) end def to_hash end @@ -2220,16 +2417,15 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) } def tiered_config end sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig - ).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) + ) + .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) end def tiered_config=(_) end @@ -2251,15 +2447,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2305,15 +2512,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2323,12 +2541,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2349,17 +2563,22 @@ module Orb tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2382,26 +2601,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -2423,7 +2647,9 @@ module Orb class TieredConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) end def tiers end @@ -2431,7 +2657,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) end def tiers=(_) end @@ -2439,13 +2668,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + } + ) end def to_hash end @@ -2596,7 +2831,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config end @@ -2604,7 +2841,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config=(_) end @@ -2626,15 +2866,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2680,15 +2931,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2698,12 +2960,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2724,17 +2982,22 @@ module Orb tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2757,26 +3020,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -2798,29 +3066,50 @@ module Orb class TieredBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + } + ) end def to_hash end @@ -2864,20 +3153,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -2960,14 +3251,13 @@ module Orb end class NewSubscriptionBpsPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) } def bps_config end sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) + params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) + .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) end def bps_config=(_) end @@ -3021,15 +3311,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3075,15 +3376,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3093,12 +3405,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3119,17 +3427,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -3152,29 +3465,31 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -3297,7 +3612,9 @@ module Orb class NewSubscriptionBulkBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config end @@ -3305,7 +3622,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config=(_) end @@ -3359,15 +3679,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3413,15 +3744,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3431,12 +3773,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3457,17 +3795,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -3490,36 +3833,40 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) end def tiers end @@ -3527,7 +3874,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) end def tiers=(_) end @@ -3535,13 +3885,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + } + ) end def to_hash end @@ -3686,14 +4042,13 @@ module Orb end class NewSubscriptionBulkPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) } def bulk_config end sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig).returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) + params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) + .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) end def bulk_config=(_) end @@ -3747,15 +4102,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3801,15 +4167,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3819,12 +4196,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3845,17 +4218,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -3878,36 +4256,40 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) end def tiers end @@ -3915,7 +4297,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) end def tiers=(_) end @@ -3923,13 +4308,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + } + ) end def to_hash end @@ -4109,15 +4500,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4163,15 +4565,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4181,12 +4594,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4207,17 +4616,22 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4240,26 +4654,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -4412,15 +4831,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4466,15 +4896,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4484,12 +4925,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4510,17 +4947,22 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4543,26 +4985,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -4715,15 +5162,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4769,15 +5227,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4787,12 +5256,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4813,17 +5278,22 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4846,26 +5316,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5018,15 +5493,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5072,15 +5558,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5090,12 +5587,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5116,17 +5609,22 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5149,26 +5647,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5321,15 +5824,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5375,15 +5889,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5393,12 +5918,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5419,17 +5940,22 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5452,26 +5978,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5624,15 +6155,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5678,15 +6220,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5696,12 +6249,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5722,17 +6271,22 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5755,26 +6309,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5927,15 +6486,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5981,15 +6551,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5999,12 +6580,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6025,17 +6602,22 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6058,26 +6640,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6230,15 +6817,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6284,15 +6882,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6302,12 +6911,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6328,17 +6933,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6361,26 +6971,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6533,15 +7148,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6587,15 +7213,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6605,12 +7242,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6631,17 +7264,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6664,26 +7302,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6836,15 +7479,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6890,15 +7544,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6908,12 +7573,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6934,17 +7595,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -6967,26 +7633,31 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -7082,64 +7753,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice - ], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice - ], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], - [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice]] + ) end private_class_method def self.variants end @@ -7254,11 +7871,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ) ) - ).returns(T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - )) end def adjustment=(_) end @@ -7274,23 +7902,33 @@ module Orb sig do params( adjustment: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum ), replaces_adjustment_id: String - ).void + ) + .void end def initialize(adjustment:, replaces_adjustment_id:) end sig do - override.returns( - { - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - ), - replaces_adjustment_id: String - } - ) + override + .returns( + { + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ), + replaces_adjustment_id: String + } + ) end def to_hash end @@ -7337,7 +7975,8 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7348,14 +7987,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7400,7 +8040,8 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7411,14 +8052,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7463,7 +8105,8 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -7474,14 +8117,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7535,7 +8179,8 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7547,15 +8192,16 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7600,7 +8246,8 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7611,38 +8258,25 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount - ], - [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum], - [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum]] + ) end private_class_method def self.variants end @@ -7663,7 +8297,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) + params(_: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) + .returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) end def allocation_price=(_) end @@ -7673,7 +8308,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) end def discounts=(_) end @@ -7714,7 +8350,24 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ) ) ) @@ -7726,14 +8379,51 @@ module Orb params( _: T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + .returns( + T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) ) ) - ).returns(T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - )) end def price=(_) end @@ -7757,11 +8447,29 @@ module Orb minimum_amount: T.nilable(String), price: T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ) ), price_id: T.nilable(String) - ).void + ) + .void end def initialize( replaces_price_id:, @@ -7777,40 +8485,41 @@ module Orb end sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - ), - price_id: T.nilable(String) - } - ) + override + .returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice), + discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -7860,14 +8569,13 @@ module Orb end sig do - override.returns( - { - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -7927,20 +8635,22 @@ module Orb amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ).void + ) + .void end def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do - override.returns( - { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override + .returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) end def to_hash end @@ -7994,16 +8704,15 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) } def unit_config end sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) + ) + .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) end def unit_config=(_) end @@ -8025,15 +8734,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8079,15 +8799,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8097,12 +8828,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8123,17 +8850,22 @@ module Orb unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8156,26 +8888,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8322,7 +9059,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig) + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config end @@ -8330,7 +9069,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config=(_) end @@ -8352,15 +9094,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8406,15 +9159,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8424,12 +9188,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8450,17 +9210,22 @@ module Orb package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8483,26 +9248,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8641,7 +9411,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config end @@ -8649,7 +9421,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config=(_) end @@ -8687,15 +9462,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8741,15 +9527,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8759,12 +9556,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8785,17 +9578,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8818,26 +9616,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8875,15 +9678,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -8892,20 +9706,26 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + } + ) end def to_hash end @@ -9046,7 +9866,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig) + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config end @@ -9054,7 +9876,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config=(_) end @@ -9076,15 +9901,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9130,15 +9966,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9148,12 +9995,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9174,17 +10017,22 @@ module Orb tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -9207,26 +10055,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -9248,7 +10101,9 @@ module Orb class TieredConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) end def tiers end @@ -9256,7 +10111,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) end def tiers=(_) end @@ -9264,13 +10122,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + } + ) end def to_hash end @@ -9421,7 +10285,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config end @@ -9429,7 +10295,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config=(_) end @@ -9451,15 +10320,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9505,15 +10385,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9523,12 +10414,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9549,17 +10436,22 @@ module Orb tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -9582,26 +10474,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -9623,29 +10520,50 @@ module Orb class TieredBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + } + ) end def to_hash end @@ -9689,20 +10607,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -9785,14 +10705,13 @@ module Orb end class NewSubscriptionBpsPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) } def bps_config end sig do - params(_: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) + params(_: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) + .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) end def bps_config=(_) end @@ -9846,15 +10765,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9900,15 +10830,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9918,12 +10859,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9944,17 +10881,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -9977,29 +10919,31 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -10122,7 +11066,9 @@ module Orb class NewSubscriptionBulkBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config end @@ -10130,7 +11076,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + ) + .returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config=(_) end @@ -10184,15 +11133,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10238,15 +11198,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -10256,12 +11227,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -10282,17 +11249,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -10315,58 +11287,81 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + } + ) end def to_hash end @@ -10511,16 +11506,15 @@ module Orb end class NewSubscriptionBulkPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) } def bulk_config end sig do params( _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig - ).returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) + ) + .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) end def bulk_config=(_) end @@ -10574,15 +11568,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10628,15 +11633,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -10646,12 +11662,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -10672,17 +11684,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -10705,36 +11722,40 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) end def tiers end @@ -10742,7 +11763,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) end def tiers=(_) end @@ -10750,13 +11774,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + } + ) end def to_hash end @@ -10936,15 +11966,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10990,15 +12031,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11008,12 +12060,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11034,17 +12082,22 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11067,26 +12120,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11239,15 +12297,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11293,15 +12362,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11311,12 +12391,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11337,17 +12413,22 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11370,26 +12451,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11542,15 +12628,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11596,15 +12693,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11614,12 +12722,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11640,17 +12744,22 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11673,26 +12782,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11845,15 +12959,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11899,15 +13024,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11917,12 +13053,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11943,17 +13075,22 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11976,26 +13113,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12148,15 +13290,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12202,15 +13355,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12220,12 +13384,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12246,17 +13406,22 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12279,26 +13444,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12451,15 +13621,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12505,15 +13686,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12523,12 +13715,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12549,17 +13737,22 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12582,26 +13775,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12754,15 +13952,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12808,15 +14017,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12826,12 +14046,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12852,17 +14068,22 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12885,26 +14106,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13057,15 +14283,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13111,15 +14348,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13129,12 +14377,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13155,17 +14399,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -13188,26 +14437,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13360,15 +14614,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13414,15 +14679,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13432,12 +14708,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13458,17 +14730,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -13491,26 +14768,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13663,15 +14945,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13717,15 +15010,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13735,12 +15039,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13761,17 +15061,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -13794,26 +15099,31 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13909,79 +15219,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice - ], - [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index d6faabe1..9671733e 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,11 +99,13 @@ module Orb sig do returns( - T::Array[T.any( + T::Array[ + T.any( Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - )] + ) + ] ) end def discount_intervals @@ -109,14 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( + _: T::Array[ + T.any( Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - )] - ).returns(T::Array[T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - )]) + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -134,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -152,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -170,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -196,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) end def price_intervals=(_) end @@ -206,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -232,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionCreateResponse::TrialInfo).returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) + params(_: Orb::Models::SubscriptionCreateResponse::TrialInfo) + .returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) end def trial_info=(_) end @@ -250,9 +269,13 @@ module Orb 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::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - )], + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + ) + ], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -266,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -298,37 +322,42 @@ module Orb end sig do - override.returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - )], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - } - ) + override + .returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::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::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo + } + ) end def to_hash end @@ -345,7 +374,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -355,11 +388,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) ) - ).returns(T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - )) end def adjustment=(_) end @@ -392,28 +436,38 @@ module Orb params( id: String, adjustment: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - id: String, - adjustment: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -487,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -501,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -583,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -597,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -679,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -693,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -784,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -799,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -882,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -896,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1037,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1050,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1122,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1135,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1207,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1220,32 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval - ], - [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval], - [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1343,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1355,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1417,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1429,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1485,7 +1533,9 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions end @@ -1493,7 +1543,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition])) + ) + .returns( + T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1567,36 +1620,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1648,7 +1704,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1663,47 +1720,48 @@ module Orb end sig do - override.returns( - { - 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), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::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 - } - ) + override + .returns( + { + 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), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index 21ab3af8..1d54eba5 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -45,7 +45,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( currency: nil, @@ -57,15 +58,16 @@ module Orb end sig do - override.returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi index abfc0b3e..eba2a42a 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi @@ -8,7 +8,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) + params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) + .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) end def data=(_) end @@ -27,7 +28,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]).returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) + params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) + .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) end def per_price_costs=(_) end @@ -71,17 +73,23 @@ module Orb timeframe_end: Time, timeframe_start: Time, total: String - ).void + ) + .void end def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do - override.returns( - { - per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String - } - ) + override + .returns( + { + per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) end def to_hash end @@ -156,36 +164,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -258,50 +269,52 @@ module Orb subtotal: String, total: String, quantity: T.nilable(Float) - ).void + ) + .void end def initialize(price:, price_id:, subtotal:, total:, quantity: nil) end sig do - override.returns( - { - 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 - ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + override + .returns( + { + 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 + ), + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index 122633fd..e9da56ac 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -63,7 +63,8 @@ module Orb start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( cursor: nil, @@ -77,17 +78,18 @@ module Orb end sig do - override.returns( - { - cursor: T.nilable(String), - limit: Integer, - start_date_gt: T.nilable(Time), - start_date_gte: T.nilable(Time), - start_date_lt: T.nilable(Time), - start_date_lte: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + cursor: T.nilable(String), + limit: Integer, + start_date_gt: T.nilable(Time), + start_date_gte: T.nilable(Time), + start_date_lt: T.nilable(Time), + start_date_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi index 8790be32..4f69a369 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionFetchScheduleResponse::Plan).returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) + params(_: Orb::Models::SubscriptionFetchScheduleResponse::Plan) + .returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) end def plan=(_) end @@ -43,20 +44,22 @@ module Orb end_date: T.nilable(Time), plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, start_date: Time - ).void + ) + .void end def initialize(created_at:, end_date:, plan:, start_date:) end sig do - override.returns( - { - created_at: Time, - end_date: T.nilable(Time), - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, - start_date: Time - } - ) + override + .returns( + { + created_at: Time, + end_date: T.nilable(Time), + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + start_date: Time + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index 5b2d96e4..ee53a791 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -99,7 +99,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( billable_metric_id: nil, @@ -117,21 +118,22 @@ module Orb end sig do - override.returns( - { - billable_metric_id: T.nilable(String), - first_dimension_key: T.nilable(String), - first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), - group_by: T.nilable(String), - second_dimension_key: T.nilable(String), - second_dimension_value: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + billable_metric_id: T.nilable(String), + first_dimension_key: T.nilable(String), + first_dimension_value: T.nilable(String), + granularity: T.nilable(Symbol), + group_by: T.nilable(String), + second_dimension_key: T.nilable(String), + second_dimension_value: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index e1fdc27f..a641436a 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -90,7 +90,8 @@ module Orb limit: Integer, status: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( created_at_gt: nil, @@ -107,20 +108,21 @@ module Orb end sig do - override.returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(T::Array[String]), - external_customer_id: T.nilable(String), - limit: Integer, - status: T.nilable(Symbol), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(T::Array[String]), + external_customer_id: T.nilable(String), + limit: Integer, + status: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index b90eaf4f..0cf828ff 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) end def add=(_) end @@ -21,7 +22,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) end def add_adjustments=(_) end @@ -39,7 +41,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) end def edit=(_) end @@ -49,7 +52,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) end def edit_adjustments=(_) end @@ -62,7 +66,8 @@ module Orb edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( add: nil, @@ -75,16 +80,17 @@ module Orb end sig do - override.returns( - { - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: T.nilable(T::Boolean), - edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + allow_invoice_credit_or_void: T.nilable(T::Boolean), + edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -103,7 +109,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) + params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) + .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) end def allocation_price=(_) end @@ -111,9 +118,13 @@ module Orb sig do returns( T.nilable( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - )] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + ] ) ) end @@ -123,15 +134,26 @@ module Orb sig do params( _: T.nilable( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - )] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + ] + ) + ) + .returns( + T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + ] + ) ) - ).returns(T.nilable( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - )] - )) end def discounts=(_) end @@ -153,7 +175,9 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition])) + returns( + T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions end @@ -161,7 +185,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition])) + ) + .returns( + T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions=(_) end @@ -255,11 +282,41 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice ) ) - ).returns(T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ) - )) + ) + .returns( + T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice + ) + ) + ) end def price=(_) end @@ -277,9 +334,13 @@ module Orb start_date: T.any(Time, Symbol), allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), discounts: T.nilable( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - )] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + ] ), end_date: T.nilable(T.any(Time, Symbol)), external_price_id: T.nilable(String), @@ -288,11 +349,39 @@ module Orb minimum_amount: T.nilable(Float), price: T.nilable( T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice ) ), price_id: T.nilable(String) - ).void + ) + .void end def initialize( start_date:, @@ -309,55 +398,60 @@ module Orb end sig do - override.returns( - { - start_date: T.any(Time, Symbol), - allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), - discounts: T.nilable( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - )] - ), - end_date: T.nilable(T.any(Time, Symbol)), - external_price_id: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), - maximum_amount: T.nilable(Float), - minimum_amount: T.nilable(Float), - price: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ) - ), - price_id: T.nilable(String) - } - ) + override + .returns( + { + start_date: T.any(Time, Symbol), + allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), + discounts: T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + ] + ), + end_date: T.nilable(T.any(Time, Symbol)), + external_price_id: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), + maximum_amount: T.nilable(Float), + minimum_amount: T.nilable(Float), + price: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice + ) + ), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -415,14 +509,13 @@ module Orb end sig do - override.returns( - { - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -525,22 +618,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams]] + ) end private_class_method def self.variants end @@ -624,14 +705,13 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) } def unit_config end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) + params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) end def unit_config=(_) end @@ -653,15 +733,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -699,15 +790,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -717,12 +819,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -736,15 +834,20 @@ module Orb unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -766,25 +869,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -938,16 +1046,15 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) } def package_config end sig do params( _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig - ).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) + ) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) end def package_config=(_) end @@ -969,15 +1076,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1015,15 +1133,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1033,12 +1162,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1052,15 +1177,20 @@ module Orb package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1082,25 +1212,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1246,14 +1381,13 @@ module Orb def item_id=(_) end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) } def matrix_config end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) + params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) end def matrix_config=(_) end @@ -1291,15 +1425,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1337,15 +1482,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1355,12 +1511,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1374,15 +1526,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1404,25 +1561,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1460,15 +1622,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -1477,20 +1650,26 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + ] + } + ) end def to_hash end @@ -1623,7 +1802,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig) + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig + ) end def matrix_with_allocation_config end @@ -1631,7 +1812,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig - ).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig) + ) + .returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig + ) end def matrix_with_allocation_config=(_) end @@ -1669,15 +1853,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1715,15 +1910,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1733,12 +1939,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1752,15 +1954,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1782,25 +1989,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -1846,15 +2058,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -1864,21 +2087,27 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + ) + .void end def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } - ) + override + .returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + ] + } + ) end def to_hash end @@ -2026,14 +2255,13 @@ module Orb def name=(_) end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) } def tiered_config end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) + params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) end def tiered_config=(_) end @@ -2055,15 +2283,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2101,15 +2340,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2119,12 +2369,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2138,15 +2384,20 @@ module Orb tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2168,25 +2419,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -2208,7 +2464,9 @@ module Orb class TieredConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ) end def tiers end @@ -2216,7 +2474,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ) end def tiers=(_) end @@ -2224,13 +2485,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + } + ) end def to_hash end @@ -2389,7 +2656,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig) + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config end @@ -2397,7 +2666,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig - ).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig) + ) + .returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config=(_) end @@ -2419,15 +2691,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2465,15 +2748,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2483,12 +2777,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2502,15 +2792,20 @@ module Orb tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2532,25 +2827,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -2572,29 +2872,50 @@ module Orb class TieredBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + ] + } + ) end def to_hash end @@ -2638,20 +2959,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -2734,14 +3057,13 @@ module Orb end class NewFloatingBpsPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) } def bps_config end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) + params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) end def bps_config=(_) end @@ -2803,15 +3125,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2849,15 +3182,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2867,12 +3211,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2886,15 +3226,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -2916,28 +3261,30 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - } - ) + override + .returns( + { + bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -3059,16 +3406,15 @@ module Orb end class NewFloatingBulkBpsPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) } def bulk_bps_config end sig do params( _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig - ).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) + ) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) end def bulk_bps_config=(_) end @@ -3130,15 +3476,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3176,15 +3533,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3194,12 +3562,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3213,15 +3577,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -3243,35 +3612,39 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ) end def tiers end @@ -3279,7 +3652,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ) end def tiers=(_) end @@ -3287,13 +3663,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + } + ) end def to_hash end @@ -3437,15 +3819,14 @@ module Orb end end - class NewFloatingBulkPrice < Orb::BaseModel - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) - end + class NewFloatingBulkPrice < Orb::BaseModel + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) } def bulk_config end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig).returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) + params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) + .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) end def bulk_config=(_) end @@ -3507,15 +3888,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3553,15 +3945,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3571,12 +3974,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3590,15 +3989,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -3620,35 +4024,39 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - } - ) + override + .returns( + { + bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]) + returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ) end def tiers end @@ -3656,7 +4064,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]) + ) + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ) end def tiers=(_) end @@ -3664,13 +4075,19 @@ module Orb sig do params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ).void + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]}) + override + .returns( + { + tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + } + ) end def to_hash end @@ -3858,15 +4275,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3904,15 +4332,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3922,12 +4361,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3941,15 +4376,20 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -3971,25 +4411,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4150,15 +4595,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4196,15 +4652,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4214,12 +4681,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4233,15 +4696,20 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4263,25 +4731,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4442,15 +4915,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4488,15 +4972,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4506,12 +5001,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4525,15 +5016,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4555,25 +5051,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - grouped_tiered_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + grouped_tiered_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -4734,15 +5235,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4780,15 +5292,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4798,12 +5321,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4817,15 +5336,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4847,25 +5371,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5026,15 +5555,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5072,15 +5612,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5090,12 +5641,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5109,15 +5656,20 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5139,25 +5691,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5318,15 +5875,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5364,15 +5932,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5382,12 +5961,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5401,15 +5976,20 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5431,25 +6011,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5610,15 +6195,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5656,15 +6252,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5674,12 +6281,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5693,15 +6296,20 @@ module Orb tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5723,25 +6331,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -5902,15 +6515,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5948,15 +6572,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5966,12 +6601,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5985,15 +6616,20 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6015,25 +6651,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6194,15 +6835,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6240,15 +6892,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6258,12 +6921,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6277,15 +6936,20 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6307,25 +6971,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6486,15 +7155,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6532,15 +7212,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6550,12 +7241,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6569,15 +7256,20 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6599,25 +7291,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -6778,15 +7475,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6824,15 +7532,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6842,12 +7561,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6861,15 +7576,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6891,25 +7611,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7070,15 +7795,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7116,15 +7852,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7134,12 +7881,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7153,15 +7896,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7183,25 +7931,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7362,15 +8115,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7408,15 +8172,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7426,12 +8201,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7445,15 +8216,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7475,25 +8251,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7654,15 +8435,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7700,15 +8492,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -7718,12 +8521,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -7737,15 +8536,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -7767,25 +8571,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -7946,15 +8755,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -7992,15 +8812,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8010,12 +8841,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8029,15 +8856,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -8059,25 +8891,30 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -8238,15 +9075,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8284,15 +9132,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8302,12 +9161,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8321,15 +9176,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8351,25 +9211,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -8530,15 +9395,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8576,15 +9452,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8594,12 +9481,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8613,15 +9496,20 @@ module Orb scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8643,25 +9531,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -8822,15 +9715,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8868,15 +9772,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8886,12 +9801,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8905,15 +9816,20 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8935,25 +9851,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -9114,15 +10035,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9160,15 +10092,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9178,12 +10121,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9197,15 +10136,20 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -9227,25 +10171,30 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override + .returns( + { + cadence: Symbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) end def to_hash end @@ -9341,104 +10290,10 @@ module Orb end sig do - override.returns( - [ - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice - ], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice - ], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice - ], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice]] + ) end private_class_method def self.variants end @@ -9449,7 +10304,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum ) ) end @@ -9459,11 +10318,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ) ) - ).returns(T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - )) end def adjustment=(_) end @@ -9487,25 +10357,35 @@ module Orb sig do params( adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum ), start_date: T.any(Time, Symbol), end_date: T.nilable(T.any(Time, Symbol)) - ).void + ) + .void end def initialize(adjustment:, start_date:, end_date: nil) end sig do - override.returns( - { - adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - ), - start_date: T.any(Time, Symbol), - end_date: T.nilable(T.any(Time, Symbol)) - } - ) + override + .returns( + { + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ), + start_date: T.any(Time, Symbol), + end_date: T.nilable(T.any(Time, Symbol)) + } + ) end def to_hash end @@ -9552,7 +10432,8 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -9563,14 +10444,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -9615,7 +10497,8 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -9626,14 +10509,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -9678,7 +10562,8 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -9689,14 +10574,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -9750,7 +10636,8 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -9762,15 +10649,16 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -9815,7 +10703,8 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -9826,41 +10715,25 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum - ], - [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum]] + ) end private_class_method def self.variants end @@ -9909,7 +10782,9 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition])) + returns( + T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions end @@ -9917,7 +10792,10 @@ module Orb sig do params( _: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition])) + ) + .returns( + T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) + ) end def fixed_fee_quantity_transitions=(_) end @@ -9937,7 +10815,8 @@ module Orb end_date: T.nilable(T.any(Time, Symbol)), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), start_date: T.any(Time, Symbol) - ).void + ) + .void end def initialize( price_interval_id:, @@ -9949,15 +10828,16 @@ module Orb end sig do - override.returns( - { - price_interval_id: String, - billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Symbol)), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: T.any(Time, Symbol) - } - ) + override + .returns( + { + price_interval_id: String, + billing_cycle_day: T.nilable(Integer), + end_date: T.nilable(T.any(Time, Symbol)), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), + start_date: T.any(Time, Symbol) + } + ) end def to_hash end @@ -10035,19 +10915,21 @@ module Orb adjustment_interval_id: String, end_date: T.nilable(T.any(Time, Symbol)), start_date: T.any(Time, Symbol) - ).void + ) + .void end def initialize(adjustment_interval_id:, end_date: nil, start_date: nil) end sig do - override.returns( - { - adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Symbol)), - start_date: T.any(Time, Symbol) - } - ) + override + .returns( + { + adjustment_interval_id: String, + end_date: T.nilable(T.any(Time, Symbol)), + start_date: T.any(Time, Symbol) + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index 3df5ed01..5e4b0bef 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,9 +99,13 @@ module Orb sig do returns( - T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - )] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + ] ) end def discount_intervals @@ -107,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - )] - ).returns(T::Array[T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - )]) + _: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -130,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -148,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -166,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -192,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) end def price_intervals=(_) end @@ -202,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -228,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo).returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) + params(_: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) + .returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) end def trial_info=(_) end @@ -246,9 +269,13 @@ module Orb 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::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - )], + discount_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + ], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -262,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -294,37 +322,42 @@ module Orb end sig do - override.returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::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::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - )], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - } - ) + override + .returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::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::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + ], + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo + } + ) end def to_hash end @@ -341,7 +374,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -351,11 +388,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) ) - ).returns(T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - )) end def adjustment=(_) end @@ -388,28 +436,38 @@ module Orb params( id: String, adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - id: String, - adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -483,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -497,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -579,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -593,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -675,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -689,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -780,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -795,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -878,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -892,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1033,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1046,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1118,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1131,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1203,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1216,38 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1345,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1357,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1419,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1431,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1487,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + T.nilable( + T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + ) + ) end def fixed_fee_quantity_transitions end sig do params( - _: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition])) + _: T.nilable( + T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + ) + ) + .returns( + T.nilable( + T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1569,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1618,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1650,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1665,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::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 - } - ) + override + .returns( + { + 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), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi index a616e334..8c2d3ef7 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -19,7 +19,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) end def add_adjustments=(_) end @@ -29,7 +30,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) end def add_prices=(_) end @@ -58,14 +60,13 @@ module Orb def billing_cycle_alignment=(_) end - sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) - end + sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) } def billing_cycle_anchor_configuration end sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) + params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) + .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) end def billing_cycle_anchor_configuration=(_) end @@ -174,14 +175,13 @@ module Orb def price_overrides=(_) end - sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) - end + sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) } def remove_adjustments end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) end def remove_adjustments=(_) end @@ -191,19 +191,19 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) end def remove_prices=(_) end - sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) - end + sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) } def replace_adjustments end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) end def replace_adjustments=(_) end @@ -213,7 +213,8 @@ module Orb end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) end def replace_prices=(_) end @@ -254,7 +255,8 @@ module Orb replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), trial_duration_days: T.nilable(Integer), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( change_option:, @@ -287,36 +289,37 @@ module Orb end sig do - override.returns( - { - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), - align_billing_with_plan_change_date: T.nilable(T::Boolean), - auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Symbol), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), - change_date: T.nilable(Time), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), - trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + change_option: Symbol, + add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), + add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + align_billing_with_plan_change_date: T.nilable(T::Boolean), + auto_collection: T.nilable(T::Boolean), + billing_cycle_alignment: T.nilable(Symbol), + billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), + change_date: T.nilable(Time), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]), + remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]), + replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), + replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), + trial_duration_days: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) end def to_hash end @@ -337,7 +340,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum ) ) end @@ -347,11 +354,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ) ) - ).returns(T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - )) end def adjustment=(_) end @@ -383,27 +401,37 @@ module Orb sig do params( adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) - ).void + ) + .void end def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) end sig do - override.returns( - { - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ), - end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) - } - ) + override + .returns( + { + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ), + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) end def to_hash end @@ -450,7 +478,8 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -461,14 +490,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -513,7 +543,8 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -524,14 +555,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -576,7 +608,8 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -587,14 +620,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -648,7 +682,8 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -660,15 +695,16 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -713,7 +749,8 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -724,44 +761,25 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum]] + ) end private_class_method def self.variants end @@ -769,26 +787,24 @@ module Orb end class AddPrice < Orb::BaseModel - sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) - end + sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) } def allocation_price end sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) + params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) + .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) end def allocation_price=(_) end - sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) - end + sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) } def discounts end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) end def discounts=(_) end @@ -837,7 +853,24 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice ) ) ) @@ -849,14 +882,51 @@ module Orb params( _: T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + .returns( + T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) ) ) - ).returns(T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - )) end def price=(_) end @@ -888,12 +958,30 @@ module Orb plan_phase_order: T.nilable(Integer), price: T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice ) ), price_id: T.nilable(String), start_date: T.nilable(Time) - ).void + ) + .void end def initialize( allocation_price: nil, @@ -910,24 +998,42 @@ module Orb end sig do - override.returns( - { - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - ) + override + .returns( + { + allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice), + discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) + } + ) end def to_hash end @@ -977,14 +1083,13 @@ module Orb end sig do - override.returns( - { - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -1044,20 +1149,22 @@ module Orb amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ).void + ) + .void end def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do - override.returns( - { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override + .returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) end def to_hash end @@ -1112,7 +1219,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig + ) end def unit_config end @@ -1120,7 +1229,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig + ) end def unit_config=(_) end @@ -1142,15 +1254,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1196,15 +1319,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1214,12 +1348,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1240,17 +1370,22 @@ module Orb unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1273,26 +1408,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -1439,7 +1579,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config end @@ -1447,7 +1589,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config=(_) end @@ -1469,15 +1614,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1523,15 +1679,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1541,12 +1708,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1567,17 +1730,22 @@ module Orb package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1600,26 +1768,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -1758,7 +1931,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config end @@ -1766,7 +1941,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config=(_) end @@ -1804,15 +1982,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -1858,15 +2047,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -1876,12 +2076,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -1902,17 +2098,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -1935,26 +2136,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -1992,15 +2198,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -2009,20 +2226,26 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + } + ) end def to_hash end @@ -2163,7 +2386,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config end @@ -2171,7 +2396,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config=(_) end @@ -2193,15 +2421,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2247,15 +2486,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2265,12 +2515,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2291,17 +2537,22 @@ module Orb tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2324,26 +2575,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -2365,29 +2621,50 @@ module Orb class TieredConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + } + ) end def to_hash end @@ -2538,7 +2815,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config end @@ -2546,7 +2825,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config=(_) end @@ -2568,15 +2850,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -2622,15 +2915,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -2640,12 +2944,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -2666,17 +2966,22 @@ module Orb tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -2699,26 +3004,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -2740,29 +3050,50 @@ module Orb class TieredBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + } + ) end def to_hash end @@ -2806,20 +3137,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -2903,7 +3236,9 @@ module Orb class NewSubscriptionBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig + ) end def bps_config end @@ -2911,7 +3246,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig + ) end def bps_config=(_) end @@ -2965,15 +3303,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3019,15 +3368,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3037,12 +3397,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3063,17 +3419,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -3096,29 +3457,31 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -3241,7 +3604,9 @@ module Orb class NewSubscriptionBulkBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config end @@ -3249,7 +3614,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config=(_) end @@ -3303,15 +3671,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3357,15 +3736,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3375,12 +3765,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3401,17 +3787,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -3434,58 +3825,81 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + } + ) end def to_hash end @@ -3631,7 +4045,9 @@ module Orb class NewSubscriptionBulkPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig + ) end def bulk_config end @@ -3639,7 +4055,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig + ) end def bulk_config=(_) end @@ -3693,15 +4112,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -3747,15 +4177,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -3765,12 +4206,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -3791,17 +4228,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -3824,58 +4266,81 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + } + ) end def to_hash end @@ -4055,15 +4520,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4109,15 +4585,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4127,12 +4614,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4153,17 +4636,22 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4186,26 +4674,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -4358,15 +4851,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4412,15 +4916,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4430,12 +4945,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4456,17 +4967,22 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4489,26 +5005,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -4661,15 +5182,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -4715,15 +5247,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -4733,12 +5276,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -4759,17 +5298,22 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -4792,26 +5336,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -4964,15 +5513,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5018,15 +5578,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5036,12 +5607,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5062,17 +5629,22 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5095,26 +5667,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5267,15 +5844,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5321,15 +5909,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5339,12 +5938,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5365,17 +5960,22 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5398,26 +5998,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5570,15 +6175,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5624,15 +6240,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5642,12 +6269,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5668,17 +6291,22 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -5701,26 +6329,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -5873,15 +6506,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -5927,15 +6571,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -5945,12 +6600,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -5971,17 +6622,22 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6004,26 +6660,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6176,15 +6837,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6230,15 +6902,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6248,12 +6931,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6274,17 +6953,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6307,26 +6991,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6479,15 +7168,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6533,15 +7233,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6551,12 +7262,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6577,17 +7284,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -6610,26 +7322,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -6782,15 +7499,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -6836,15 +7564,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -6854,12 +7593,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -6880,17 +7615,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -6913,26 +7653,31 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -7028,82 +7773,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice]] + ) end private_class_method def self.variants end @@ -7204,7 +7877,11 @@ module Orb sig do returns( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum ) ) end @@ -7214,11 +7891,22 @@ module Orb sig do params( _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + ) + .returns( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ) ) - ).returns(T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - )) end def adjustment=(_) end @@ -7234,23 +7922,33 @@ module Orb sig do params( adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum ), replaces_adjustment_id: String - ).void + ) + .void end def initialize(adjustment:, replaces_adjustment_id:) end sig do - override.returns( - { - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ), - replaces_adjustment_id: String - } - ) + override + .returns( + { + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ), + replaces_adjustment_id: String + } + ) end def to_hash end @@ -7297,7 +7995,8 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7308,14 +8007,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7360,7 +8060,8 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7371,14 +8072,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7423,7 +8125,8 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -7434,14 +8137,15 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7495,7 +8199,8 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7507,15 +8212,16 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end @@ -7560,7 +8266,8 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -7571,44 +8278,25 @@ module Orb end sig do - override.returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override + .returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum]] + ) end private_class_method def self.variants end @@ -7624,26 +8312,24 @@ module Orb def replaces_price_id=(_) end - sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) - end + sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) } def allocation_price end sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) + params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) + .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) end def allocation_price=(_) end - sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) - end + sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) } def discounts end sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])).returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) + params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) + .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) end def discounts=(_) end @@ -7684,7 +8370,24 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ) ) ) @@ -7696,14 +8399,51 @@ module Orb params( _: T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + .returns( + T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) ) ) - ).returns(T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - )) end def price=(_) end @@ -7727,11 +8467,29 @@ module Orb minimum_amount: T.nilable(String), price: T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice ) ), price_id: T.nilable(String) - ).void + ) + .void end def initialize( replaces_price_id:, @@ -7747,23 +8505,41 @@ module Orb end sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - ), - price_id: T.nilable(String) - } - ) + override + .returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice), + discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String) + } + ) end def to_hash end @@ -7813,14 +8589,13 @@ module Orb end sig do - override.returns( - { - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override + .returns({ + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + }) end def to_hash end @@ -7880,20 +8655,22 @@ module Orb amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ).void + ) + .void end def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do - override.returns( - { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override + .returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) end def to_hash end @@ -7948,7 +8725,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + ) end def unit_config end @@ -7956,7 +8735,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + ) end def unit_config=(_) end @@ -7978,15 +8760,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8032,15 +8825,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8050,12 +8854,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8076,17 +8876,22 @@ module Orb unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8109,26 +8914,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8275,7 +9085,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config end @@ -8283,7 +9095,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + ) end def package_config=(_) end @@ -8305,15 +9120,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8359,15 +9185,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8377,12 +9214,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8403,17 +9236,22 @@ module Orb package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8436,26 +9274,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8594,7 +9437,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config end @@ -8602,7 +9447,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + ) end def matrix_config=(_) end @@ -8640,15 +9488,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -8694,15 +9553,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -8712,12 +9582,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -8738,17 +9604,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -8771,26 +9642,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -8828,15 +9704,26 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) end def matrix_values=(_) end @@ -8845,20 +9732,26 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ).void + matrix_values: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + ) + .void end def initialize(default_unit_amount:, dimensions:, matrix_values:) end sig do - override.returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - ) + override + .returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + ] + } + ) end def to_hash end @@ -8999,7 +9892,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config end @@ -9007,7 +9902,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + ) end def tiered_config=(_) end @@ -9029,15 +9927,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9083,15 +9992,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9101,12 +10021,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9127,17 +10043,22 @@ module Orb tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -9160,26 +10081,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -9201,29 +10127,50 @@ module Orb class TieredConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + ] + } + ) end def to_hash end @@ -9374,7 +10321,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config end @@ -9382,7 +10331,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + ) end def tiered_bps_config=(_) end @@ -9404,15 +10356,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9458,15 +10421,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9476,12 +10450,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9502,17 +10472,22 @@ module Orb tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -9535,26 +10510,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -9576,29 +10556,50 @@ module Orb class TieredBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + ] + } + ) end def to_hash end @@ -9642,20 +10643,22 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ).void + ) + .void end def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override + .returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) end def to_hash end @@ -9739,7 +10742,9 @@ module Orb class NewSubscriptionBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig + ) end def bps_config end @@ -9747,7 +10752,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig + ) end def bps_config=(_) end @@ -9801,15 +10809,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -9855,15 +10874,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -9873,12 +10903,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -9899,17 +10925,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bps_config:, @@ -9932,29 +10963,31 @@ module Orb end sig do - override.returns( - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -10077,7 +11110,9 @@ module Orb class NewSubscriptionBulkBpsPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config end @@ -10085,7 +11120,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + ) end def bulk_bps_config=(_) end @@ -10139,15 +11177,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10193,15 +11242,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -10211,12 +11271,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -10237,17 +11293,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_bps_config:, @@ -10270,58 +11331,81 @@ module Orb end sig do - override.returns( - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkBpsConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + ] + } + ) end def to_hash end @@ -10467,7 +11551,9 @@ module Orb class NewSubscriptionBulkPrice < Orb::BaseModel sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + ) end def bulk_config end @@ -10475,7 +11561,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig - ).returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) + ) + .returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + ) end def bulk_config=(_) end @@ -10529,15 +11618,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10583,15 +11683,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -10601,12 +11712,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -10627,17 +11734,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_config:, @@ -10660,58 +11772,81 @@ module Orb end sig do - override.returns( - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end class BulkConfig < Orb::BaseModel sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) end def tiers end sig do params( - _: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) + _: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) end def tiers=(_) end sig do params( - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ).void + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + ) + .void end def initialize(tiers:) end sig do - override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + override + .returns( + { + tiers: T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + ] + } + ) end def to_hash end @@ -10891,15 +12026,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -10945,15 +12091,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -10963,12 +12120,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -10989,17 +12142,22 @@ module Orb threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11022,26 +12180,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11194,15 +12357,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11248,15 +12422,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11266,12 +12451,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11292,17 +12473,22 @@ module Orb tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11325,26 +12511,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11497,15 +12688,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11551,15 +12753,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11569,12 +12782,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11595,17 +12804,22 @@ module Orb tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11628,26 +12842,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -11800,15 +13019,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -11854,15 +13084,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -11872,12 +13113,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -11898,17 +13135,22 @@ module Orb unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -11931,26 +13173,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12103,15 +13350,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12157,15 +13415,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12175,12 +13444,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12201,17 +13466,22 @@ module Orb package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12234,26 +13504,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12406,15 +13681,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12460,15 +13746,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12478,12 +13775,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12504,17 +13797,22 @@ module Orb tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12537,26 +13835,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -12709,15 +14012,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -12763,15 +14077,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -12781,12 +14106,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -12807,17 +14128,22 @@ module Orb unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -12840,26 +14166,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13012,15 +14343,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13066,15 +14408,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13084,12 +14437,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13110,17 +14459,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -13143,26 +14497,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13315,15 +14674,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13369,15 +14739,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13387,12 +14768,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13413,17 +14790,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( cadence:, @@ -13446,26 +14828,31 @@ module Orb end sig do - override.returns( - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13618,15 +15005,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ) + ) end def billing_cycle_configuration=(_) end @@ -13672,15 +15070,26 @@ module Orb end sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration end sig do params( - _: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration) - ).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration)) + _: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) + .returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ) + ) end def invoicing_cycle_configuration=(_) end @@ -13690,12 +15099,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -13716,17 +15121,22 @@ module Orb name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ).void + ) + .void end def initialize( bulk_with_proration_config:, @@ -13749,26 +15159,31 @@ module Orb end sig do - override.returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override + .returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) end def to_hash end @@ -13864,82 +15279,10 @@ module Orb end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice]] + ) end private_class_method def self.variants end 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 d12b88d5..87a0d7fe 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,9 +99,13 @@ 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 @@ -107,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -130,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -148,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -166,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -192,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) end def price_intervals=(_) end @@ -202,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -228,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo).returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) + params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) + .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) end def trial_info=(_) end @@ -246,9 +269,13 @@ module Orb 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 - )], + 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), @@ -262,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -294,37 +322,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -341,7 +374,11 @@ 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 + 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 @@ -351,11 +388,22 @@ module Orb 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 + 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, + 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, 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 @@ -388,28 +436,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -483,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -497,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -579,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -593,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -675,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -689,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -780,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -795,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -878,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -892,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1033,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1046,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1118,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1131,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1203,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1216,38 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1345,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1357,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1419,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1431,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1487,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1569,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1618,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1650,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1665,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index c728277b..a1d912f8 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -27,19 +27,21 @@ module Orb 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]) - ).void + ) + .void end def initialize(allow_invoice_credit_or_void: nil, effective_date: nil, request_options: {}) end sig do - override.returns( - { - allow_invoice_credit_or_void: T.nilable(T::Boolean), - effective_date: T.nilable(Date), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + allow_invoice_credit_or_void: T.nilable(T::Boolean), + effective_date: T.nilable(Date), + request_options: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index e39e3439..09a0258b 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,9 +99,13 @@ 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 @@ -107,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -130,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -148,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -166,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -192,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) end def price_intervals=(_) end @@ -202,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -228,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo).returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) + params(_: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) + .returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) end def trial_info=(_) end @@ -246,9 +269,13 @@ module Orb 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 - )], + 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), @@ -262,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -294,37 +322,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -341,7 +374,11 @@ 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 + 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 @@ -351,11 +388,22 @@ module Orb 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 + 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, + 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, 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 @@ -388,28 +436,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -483,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -497,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -579,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -593,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -675,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -689,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -780,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -795,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -878,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -892,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1033,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1046,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1118,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1131,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1203,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1216,35 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval - ], - [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1342,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1354,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1416,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1428,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1484,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1566,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1615,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1647,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1662,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index da75179a..9994a202 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -37,14 +38,13 @@ module Orb def auto_collection=(_) end - sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) - end + sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) } def billing_cycle_anchor_configuration end sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -99,9 +99,13 @@ 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 @@ -109,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -127,14 +142,13 @@ module Orb def end_date=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) } def fixed_fee_quantity_schedule end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -152,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -170,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -196,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) end def price_intervals=(_) end @@ -206,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -232,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo).returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) + params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) + .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) end def trial_info=(_) end @@ -250,9 +269,13 @@ module Orb 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 - )], + 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), @@ -266,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -298,37 +322,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -345,7 +374,11 @@ 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 + 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 @@ -355,11 +388,22 @@ module Orb 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 + 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, + 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, 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 @@ -392,28 +436,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -487,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -501,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -583,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -597,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -679,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -693,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -784,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -799,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -882,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -896,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1037,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1050,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1122,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1135,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1207,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1220,38 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1349,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1361,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1423,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1435,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1491,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1573,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1622,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1654,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1669,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash 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 17039658..b54868af 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 @@ -19,16 +19,15 @@ module Orb def active_plan_phase_order=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) } def adjustment_intervals end sig do params( _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] - ).returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) + ) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +41,9 @@ module Orb end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration) + returns( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + ) end def billing_cycle_anchor_configuration end @@ -50,7 +51,10 @@ module Orb sig do params( _: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration - ).returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration) + ) + .returns( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + ) end def billing_cycle_anchor_configuration=(_) end @@ -105,9 +109,13 @@ 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 @@ -115,12 +123,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -134,7 +153,9 @@ module Orb end sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule]) + returns( + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + ) end def fixed_fee_quantity_schedule end @@ -142,7 +163,10 @@ module Orb sig do params( _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ).returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule]) + ) + .returns( + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + ) end def fixed_fee_quantity_schedule=(_) end @@ -155,14 +179,13 @@ module Orb def invoicing_threshold=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) } def maximum_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -175,14 +198,13 @@ module Orb def metadata=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) } def minimum_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -203,26 +225,24 @@ module Orb def plan=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) } def price_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) end def price_intervals=(_) end - sig do - returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) - end + sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) } def redeemed_coupon end sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -248,7 +268,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo).returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) + params(_: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) + .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) end def trial_info=(_) end @@ -266,9 +287,13 @@ module Orb 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 - )], + 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), @@ -282,7 +307,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -314,37 +340,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -361,7 +392,11 @@ 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 + 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 @@ -371,11 +406,22 @@ module Orb 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 + 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, + 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, 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 @@ -408,28 +454,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -503,7 +559,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -517,17 +574,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -599,7 +657,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -613,17 +672,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -695,7 +755,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -709,17 +770,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -800,7 +862,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -815,18 +878,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -898,7 +962,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -912,47 +977,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1053,7 +1099,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1066,16 +1113,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1138,7 +1186,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1151,16 +1200,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1223,7 +1273,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1236,38 +1287,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1365,7 +1405,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1377,15 +1418,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1439,7 +1481,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1451,15 +1494,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1507,15 +1551,32 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition])) + _: T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] + ) + ) + .returns( + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1589,36 +1650,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1638,7 +1702,11 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + ] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1670,7 +1738,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1685,47 +1754,52 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash 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 cf7b2605..dafa933e 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 @@ -19,14 +19,13 @@ module Orb def active_plan_phase_order=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) } def adjustment_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -39,14 +38,13 @@ module Orb def auto_collection=(_) end - sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) - end + sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) } def billing_cycle_anchor_configuration end sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -101,9 +99,13 @@ 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 @@ -111,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -129,16 +142,15 @@ module Orb def end_date=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) } def fixed_fee_quantity_schedule end sig do params( _: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] - ).returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) + ) + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -151,14 +163,13 @@ module Orb def invoicing_threshold=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) } def maximum_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -171,14 +182,13 @@ module Orb def metadata=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) } def minimum_intervals end sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -204,19 +214,19 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) end def price_intervals=(_) end - sig do - returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) - end + sig { returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) } def redeemed_coupon end sig do - params(_: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -242,7 +252,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo).returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) + params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) + .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) end def trial_info=(_) end @@ -260,9 +271,13 @@ module Orb 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 - )], + 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), @@ -276,7 +291,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -308,37 +324,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -355,7 +376,11 @@ 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 + 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 @@ -365,11 +390,22 @@ module Orb 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 + 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, + 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, 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 @@ -402,28 +438,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -497,7 +543,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -511,17 +558,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -593,7 +641,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -607,17 +656,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -689,7 +739,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -703,17 +754,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -794,7 +846,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -809,18 +862,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -892,7 +946,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -906,47 +961,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1047,7 +1083,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1060,16 +1097,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1132,7 +1170,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1145,16 +1184,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1217,7 +1257,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1230,38 +1271,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1359,7 +1389,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1371,15 +1402,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1433,7 +1465,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1445,15 +1478,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1501,15 +1535,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1583,36 +1628,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1632,7 +1680,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1664,7 +1714,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1679,47 +1730,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash 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 df023b06..ede2dec2 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 @@ -54,7 +54,8 @@ module Orb change_option: Symbol, effective_date: T.nilable(Date), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize( price_id:, @@ -67,16 +68,17 @@ module Orb end sig do - override.returns( - { - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, - effective_date: T.nilable(Date), - request_options: Orb::RequestOptions - } - ) + override + .returns( + { + price_id: String, + quantity: Float, + allow_invoice_credit_or_void: T.nilable(T::Boolean), + change_option: Symbol, + effective_date: T.nilable(Date), + request_options: Orb::RequestOptions + } + ) end def to_hash end 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 b6aa70ea..24f757cf 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 @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -37,14 +38,13 @@ module Orb def auto_collection=(_) end - sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) - end + sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) } def billing_cycle_anchor_configuration end sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -99,9 +99,13 @@ 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 @@ -109,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -127,14 +142,13 @@ module Orb def end_date=(_) end - sig do - returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) - end + sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) } def fixed_fee_quantity_schedule end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -152,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -170,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -196,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) end def price_intervals=(_) end @@ -206,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -232,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo).returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) + params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) + .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) end def trial_info=(_) end @@ -250,9 +269,13 @@ module Orb 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 - )], + 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), @@ -266,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -298,37 +322,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -345,7 +374,11 @@ 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 + 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 @@ -355,11 +388,22 @@ module Orb 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 + 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, + 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, 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 @@ -392,28 +436,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -487,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -501,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -583,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -597,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -679,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -693,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -784,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -799,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -882,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -896,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1037,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1050,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1122,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1135,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1207,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1220,38 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1349,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1361,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1423,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1435,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1491,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1573,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1622,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1654,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1669,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index f53560cb..91a865d4 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -35,12 +35,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) + params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) + .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) end def metadata=(_) end @@ -61,7 +57,8 @@ module Orb 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]) - ).void + ) + .void end def initialize( auto_collection: nil, @@ -74,16 +71,17 @@ module Orb end sig do - override.returns( - { - 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: Orb::RequestOptions - } - ) + override + .returns( + { + 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: Orb::RequestOptions + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index b3cf303c..c0f986e0 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -27,19 +27,19 @@ module Orb trial_end_date: T.any(Time, Symbol), shift: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + ) + .void end def initialize(trial_end_date:, shift: nil, request_options: {}) end sig do - override.returns( - { - trial_end_date: T.any(Time, Symbol), - shift: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override + .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 638df917..67e8b80b 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -24,7 +24,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) end def adjustment_intervals=(_) end @@ -42,7 +43,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration).returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) + params(_: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) + .returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) end def billing_cycle_anchor_configuration=(_) end @@ -97,9 +99,13 @@ 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 @@ -107,12 +113,23 @@ module Orb sig do params( - _: T::Array[T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - )] - ).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 + ) + ] + ) + .returns( + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + ) + ] + ) end def discount_intervals=(_) end @@ -130,7 +147,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]).returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) + params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) + .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) end def fixed_fee_quantity_schedule=(_) end @@ -148,7 +166,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) end def maximum_intervals=(_) end @@ -166,7 +185,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) end def minimum_intervals=(_) end @@ -192,7 +212,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]).returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) + params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) + .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) end def price_intervals=(_) end @@ -202,7 +223,8 @@ module Orb end sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)).returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) + params(_: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) + .returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) end def redeemed_coupon=(_) end @@ -228,7 +250,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo).returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) + params(_: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) + .returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) end def trial_info=(_) end @@ -246,9 +269,13 @@ module Orb 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 - )], + 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), @@ -262,7 +289,8 @@ module Orb start_date: Time, status: Symbol, trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - ).void + ) + .void end def initialize( id:, @@ -294,37 +322,42 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -341,7 +374,11 @@ 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 + 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 @@ -351,11 +388,22 @@ module Orb 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 + 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, + 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, 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 @@ -388,28 +436,38 @@ module Orb 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 + 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 - ).void + ) + .void end def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -483,7 +541,8 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -497,17 +556,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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 - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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 + } + ) end def to_hash end @@ -579,7 +639,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -593,17 +654,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -675,7 +737,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -689,17 +752,18 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -780,7 +844,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -795,18 +860,19 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end @@ -878,7 +944,8 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ).void + ) + .void end def initialize( id:, @@ -892,47 +959,28 @@ module Orb end sig do - override.returns( - { - id: String, - adjustment_type: Symbol, - 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) - } - ) + override + .returns( + { + id: String, + adjustment_type: Symbol, + 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) + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) end private_class_method def self.variants end @@ -1033,7 +1081,8 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( amount_discount:, @@ -1046,16 +1095,17 @@ module Orb end sig do - override.returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override + .returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) end def to_hash end @@ -1118,7 +1168,8 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1131,16 +1182,17 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) end def to_hash end @@ -1203,7 +1255,8 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1216,35 +1269,27 @@ module Orb end sig do - override.returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override + .returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) end def to_hash end end sig do - override.returns( - [ - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval - ], - [ - Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval - ], - [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] - ] - ) + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval]] + ) end private_class_method def self.variants end @@ -1342,7 +1387,8 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1354,15 +1400,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1416,7 +1463,8 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -1428,15 +1476,16 @@ module Orb end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -1484,15 +1533,26 @@ module Orb end sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition])) + returns( + 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]) - ).returns(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] + ) + ) end def fixed_fee_quantity_transitions=(_) end @@ -1566,36 +1626,39 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice ) - ).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 - )) + ) + .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 + ) + ) end def price=(_) end @@ -1615,7 +1678,9 @@ module Orb current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + ), price: T.any( Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, @@ -1647,7 +1712,8 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ), start_date: Time - ).void + ) + .void end def initialize( id:, @@ -1662,47 +1728,50 @@ module Orb end sig do - override.returns( - { - 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), - 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 - } - ) + override + .returns( + { + 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), + 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 + } + ) end def to_hash end diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 7426c0b6..739ed9e1 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -11,7 +11,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]).returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) + params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) + .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) end def data=(_) end @@ -20,9 +21,7 @@ module Orb def initialize(data:) end - sig do - override.returns({data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]}) - end + sig { override.returns({data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]}) } def to_hash end @@ -32,7 +31,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric).returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) + params(_: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) + .returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) end def billable_metric=(_) end @@ -42,7 +42,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]).returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) + params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) + .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) end def usage=(_) end @@ -60,17 +61,21 @@ module Orb billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Symbol - ).void + ) + .void end def initialize(billable_metric:, usage:, view_mode:) end sig do - override.returns( - { - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Symbol - } - ) + override + .returns( + { + billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + view_mode: Symbol + } + ) end def to_hash end @@ -154,7 +159,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]).returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) + params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) + .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) end def data=(_) end @@ -163,9 +169,7 @@ module Orb def pagination_metadata end - sig do - params(_: T.nilable(Orb::Models::PaginationMetadata)).returns(T.nilable(Orb::Models::PaginationMetadata)) - end + sig { params(_: T.nilable(Orb::Models::PaginationMetadata)).returns(T.nilable(Orb::Models::PaginationMetadata)) } def pagination_metadata=(_) end @@ -173,18 +177,20 @@ module Orb params( data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) - ).void + ) + .void end def initialize(data:, pagination_metadata: nil) end sig do - override.returns( - { - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) - } - ) + override + .returns( + { + data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) + } + ) end def to_hash end @@ -195,7 +201,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric).returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) + params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) + .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) end def billable_metric=(_) end @@ -205,7 +212,8 @@ module Orb end sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup).returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) + params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) + .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) end def metric_group=(_) end @@ -215,7 +223,8 @@ module Orb end sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]).returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) + params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) + .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) end def usage=(_) end @@ -234,17 +243,22 @@ module Orb metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], view_mode: Symbol - ).void + ) + .void end def initialize(billable_metric:, metric_group:, usage:, view_mode:) end sig do - override.returns( - { - 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 - } - ) + override + .returns( + { + 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 + } + ) end def to_hash end @@ -349,12 +363,10 @@ module Orb end sig do - override.returns( - [ - [NilClass, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage], - [NilClass, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] - ] - ) + override + .returns( + [[NilClass, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage], [NilClass, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage]] + ) end private_class_method def self.variants end diff --git a/rbi/lib/orb/models/subscriptions.rbi b/rbi/lib/orb/models/subscriptions.rbi index ea39d9af..e2daf847 100644 --- a/rbi/lib/orb/models/subscriptions.rbi +++ b/rbi/lib/orb/models/subscriptions.rbi @@ -20,21 +20,15 @@ module Orb end sig do - params( - data: T::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata - ).void + params(data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata) + .void end def initialize(data:, pagination_metadata:) end sig do - override.returns( - { - data: T::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata - } - ) + override + .returns({data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata}) end def to_hash end diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index 59a3dd08..1403ab1a 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -50,7 +50,8 @@ module Orb reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) - ).void + ) + .void end def initialize( applies_to_price_ids:, @@ -62,15 +63,16 @@ module Orb end sig do - override.returns( - { - 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) - } - ) + override + .returns( + { + 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) + } + ) end def to_hash end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index fe3b2227..24c45dd8 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -25,10 +25,11 @@ module Orb sig do params( client: Orb::BaseClient, - req: Orb::BaseClient::RequestShape, + req: Orb::BaseClient::RequestComponentsShape, headers: T::Hash[String, String], unwrapped: T::Hash[Symbol, T.anything] - ).void + ) + .void end def initialize(client:, req:, headers:, unwrapped:) end diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index d8fb76c0..b3e51aac 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -9,13 +9,8 @@ module Orb end sig do - params( - _: T.any( - Orb::RequestOptions, - T::Hash[Symbol, - T.anything] - ) - ).returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + params(_: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + .returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) end def request_options=(_) end @@ -45,17 +40,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[String, - T.nilable( - T.any( - T::Array[String], - String - ) - )] - ) - ).returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) + params(_: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) + .returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) end def extra_query=(_) end @@ -65,12 +51,8 @@ module Orb end sig do - params( - _: T.nilable( - T::Hash[String, - T.nilable(String)] - ) - ).returns(T.nilable(T::Hash[String, T.nilable(String)])) + params(_: T.nilable(T::Hash[String, T.nilable(String)])) + .returns(T.nilable(T::Hash[String, T.nilable(String)])) end def extra_headers=(_) end diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index 1ae0cb11..4178206b 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -7,7 +7,8 @@ module Orb params( alert_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def retrieve(alert_id, request_options: {}) end @@ -17,7 +18,8 @@ module Orb alert_configuration_id: String, thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def update(alert_configuration_id, thresholds:, request_options: {}) end @@ -34,7 +36,8 @@ module Orb limit: Integer, subscription_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Alert]) + ) + .returns(Orb::Page[Orb::Models::Alert]) end def list( created_at_gt: nil, @@ -57,7 +60,8 @@ module Orb type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def create_for_customer(customer_id, currency:, type:, thresholds: nil, request_options: {}) end @@ -69,7 +73,8 @@ module Orb type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def create_for_external_customer( external_customer_id, @@ -87,7 +92,8 @@ module Orb type: Symbol, metric_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def create_for_subscription(subscription_id, thresholds:, type:, metric_id: nil, request_options: {}) end @@ -97,7 +103,8 @@ module Orb alert_configuration_id: String, subscription_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def disable(alert_configuration_id, subscription_id: nil, request_options: {}) end @@ -107,7 +114,8 @@ module Orb alert_configuration_id: String, subscription_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Alert) + ) + .returns(Orb::Models::Alert) end def enable(alert_configuration_id, subscription_id: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index 13fdcb6c..a743e409 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -17,7 +17,8 @@ module Orb duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Coupon) + ) + .returns(Orb::Models::Coupon) end def create( discount:, @@ -35,7 +36,8 @@ module Orb redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Coupon]) + ) + .returns(Orb::Page[Orb::Models::Coupon]) end def list(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) end @@ -44,7 +46,8 @@ module Orb params( coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Coupon) + ) + .returns(Orb::Models::Coupon) end def archive(coupon_id, request_options: {}) end @@ -53,7 +56,8 @@ module Orb params( coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Coupon) + ) + .returns(Orb::Models::Coupon) end def fetch(coupon_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index 45c88aa3..eaa23657 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -10,7 +10,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Subscription]) + ) + .returns(Orb::Page[Orb::Models::Subscription]) end def list(coupon_id, cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index 1c1a19f1..2f55b4f3 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -9,7 +9,8 @@ module Orb memo: T.nilable(String), reason: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::CreditNote) + ) + .returns(Orb::Models::CreditNote) end def create(line_items:, memo: nil, reason: nil, request_options: {}) end @@ -19,7 +20,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::CreditNote]) + ) + .returns(Orb::Page[Orb::Models::CreditNote]) end def list(cursor: nil, limit: nil, request_options: {}) end @@ -28,7 +30,8 @@ module Orb params( credit_note_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::CreditNote) + ) + .returns(Orb::Models::CreditNote) end def fetch(credit_note_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index c217fa91..b9c5f7ce 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -33,13 +33,15 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), timezone: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customer) + ) + .returns(Orb::Models::Customer) end def create( email:, @@ -82,12 +84,14 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customer) + ) + .returns(Orb::Models::Customer) end def update( customer_id, @@ -120,7 +124,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customer]) + ) + .returns(Orb::Page[Orb::Models::Customer]) end def list( created_at_gt: nil, @@ -137,7 +142,8 @@ module Orb params( customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).void + ) + .void end def delete(customer_id, request_options: {}) end @@ -146,7 +152,8 @@ module Orb params( customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customer) + ) + .returns(Orb::Models::Customer) end def fetch(customer_id, request_options: {}) end @@ -155,7 +162,8 @@ module Orb params( external_customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customer) + ) + .returns(Orb::Models::Customer) end def fetch_by_external_id(external_customer_id, request_options: {}) end @@ -164,7 +172,8 @@ module Orb params( external_customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).void + ) + .void end def sync_payment_methods_from_gateway(external_customer_id, request_options: {}) end @@ -173,7 +182,8 @@ module Orb params( customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).void + ) + .void end def sync_payment_methods_from_gateway_by_external_customer_id(customer_id, request_options: {}) end @@ -197,12 +207,14 @@ module Orb shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), tax_configuration: T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ), tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customer) + ) + .returns(Orb::Models::Customer) end def update_by_external_id( id, diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index 974d53be..b7d6dcfb 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -11,7 +11,8 @@ module Orb type: Symbol, description: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customers::BalanceTransactionCreateResponse) + ) + .returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end def create(customer_id, amount:, type:, description: nil, request_options: {}) end @@ -26,7 +27,8 @@ module Orb operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse]) + ) + .returns(Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse]) end def list( customer_id, diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index c13fe977..d28bb7c4 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -12,7 +12,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customers::CostListResponse) + ) + .returns(Orb::Models::Customers::CostListResponse) end def list( customer_id, @@ -32,7 +33,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customers::CostListByExternalIDResponse) + ) + .returns(Orb::Models::Customers::CostListByExternalIDResponse) end def list_by_external_id( external_customer_id, diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index 827b2980..276ff166 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -20,7 +20,8 @@ module Orb include_all_blocks: T::Boolean, limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) + ) + .returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) end def list( customer_id, @@ -40,7 +41,8 @@ module Orb include_all_blocks: T::Boolean, limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) + ) + .returns(Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) end def list_by_external_id( external_customer_id, diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index 4b5633de..b1c38f4c 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -19,9 +19,20 @@ module Orb limit: Integer, minimum_amount: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[T.any( - Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry - )]) + ) + .returns( + Orb::Page[ + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry + ) + ] + ) end def list( customer_id, @@ -55,15 +66,18 @@ module Orb per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry - )) + ) + .returns( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry + ) + ) end def create_entry( customer_id, @@ -99,9 +113,18 @@ module Orb per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - )) + ) + .returns( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry + ) + ) end def create_entry_by_external_id( external_customer_id, @@ -135,9 +158,20 @@ module Orb limit: Integer, minimum_amount: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - )]) + ) + .returns( + Orb::Page[ + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry + ) + ] + ) end def list_by_external_id( external_customer_id, diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index 435197de..e7f0a47d 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -16,7 +16,8 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customers::Credits::TopUpCreateResponse) + ) + .returns(Orb::Models::Customers::Credits::TopUpCreateResponse) end def create( customer_id, @@ -37,7 +38,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) + ) + .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end def list(customer_id, cursor: nil, limit: nil, request_options: {}) end @@ -47,7 +49,8 @@ module Orb top_up_id: String, customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).void + ) + .void end def delete(top_up_id, customer_id:, request_options: {}) end @@ -63,7 +66,8 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) + ) + .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) end def create_by_external_id( external_customer_id, @@ -83,7 +87,8 @@ module Orb top_up_id: String, external_customer_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).void + ) + .void end def delete_by_external_id(top_up_id, external_customer_id:, request_options: {}) end @@ -94,7 +99,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) + ) + .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end def list_by_external_id(external_customer_id, cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index b248c6d2..d8022d6a 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -15,7 +15,8 @@ module Orb external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::DimensionalPriceGroup) + ) + .returns(Orb::Models::DimensionalPriceGroup) end def create( billable_metric_id:, @@ -31,7 +32,8 @@ module Orb params( dimensional_price_group_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::DimensionalPriceGroup) + ) + .returns(Orb::Models::DimensionalPriceGroup) end def retrieve(dimensional_price_group_id, request_options: {}) end @@ -41,7 +43,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) + ) + .returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) end def list(cursor: nil, limit: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi index 446a3165..2068d28c 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi @@ -8,7 +8,8 @@ module Orb params( external_dimensional_price_group_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::DimensionalPriceGroup) + ) + .returns(Orb::Models::DimensionalPriceGroup) end def retrieve(external_dimensional_price_group_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index 738b520b..4245ef2d 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -20,7 +20,8 @@ module Orb customer_id: T.nilable(String), external_customer_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::EventUpdateResponse) + ) + .returns(Orb::Models::EventUpdateResponse) end def update( event_id, @@ -37,7 +38,8 @@ module Orb params( event_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::EventDeprecateResponse) + ) + .returns(Orb::Models::EventDeprecateResponse) end def deprecate(event_id, request_options: {}) end @@ -48,7 +50,8 @@ module Orb backfill_id: T.nilable(String), debug: T::Boolean, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::EventIngestResponse) + ) + .returns(Orb::Models::EventIngestResponse) end def ingest(events:, backfill_id: nil, debug: nil, request_options: {}) end @@ -59,7 +62,8 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::EventSearchResponse) + ) + .returns(Orb::Models::EventSearchResponse) end def search(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index 8f78a959..b43ab432 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -14,7 +14,8 @@ module Orb external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Events::BackfillCreateResponse) + ) + .returns(Orb::Models::Events::BackfillCreateResponse) end def create( timeframe_end:, @@ -33,7 +34,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) + ) + .returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) end def list(cursor: nil, limit: nil, request_options: {}) end @@ -42,7 +44,8 @@ module Orb params( backfill_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Events::BackfillCloseResponse) + ) + .returns(Orb::Models::Events::BackfillCloseResponse) end def close(backfill_id, request_options: {}) end @@ -51,7 +54,8 @@ module Orb params( backfill_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Events::BackfillFetchResponse) + ) + .returns(Orb::Models::Events::BackfillFetchResponse) end def fetch(backfill_id, request_options: {}) end @@ -60,7 +64,8 @@ module Orb params( backfill_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Events::BackfillRevertResponse) + ) + .returns(Orb::Models::Events::BackfillRevertResponse) end def revert(backfill_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index 8da22b34..0734b9cf 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -11,7 +11,8 @@ module Orb limit: Integer, timeframe_end: Time, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Events::EventVolumes) + ) + .returns(Orb::Models::Events::EventVolumes) end def list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/invoice_line_items.rbi b/rbi/lib/orb/resources/invoice_line_items.rbi index 80da4f5d..4f84e034 100644 --- a/rbi/lib/orb/resources/invoice_line_items.rbi +++ b/rbi/lib/orb/resources/invoice_line_items.rbi @@ -12,7 +12,8 @@ module Orb quantity: Float, start_date: Date, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::InvoiceLineItemCreateResponse) + ) + .returns(Orb::Models::InvoiceLineItemCreateResponse) end def create(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index 22d8d67e..41db7659 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -23,7 +23,8 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def create( currency:, @@ -45,7 +46,8 @@ module Orb invoice_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def update(invoice_id, metadata: nil, request_options: {}) end @@ -72,7 +74,8 @@ module Orb status: T.nilable(T::Array[Symbol]), subscription_id: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Invoice]) + ) + .returns(Orb::Page[Orb::Models::Invoice]) end def list( amount: nil, @@ -102,7 +105,8 @@ module Orb params( invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def fetch(invoice_id, request_options: {}) end @@ -111,7 +115,8 @@ module Orb params( subscription_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::InvoiceFetchUpcomingResponse) + ) + .returns(Orb::Models::InvoiceFetchUpcomingResponse) end def fetch_upcoming(subscription_id:, request_options: {}) end @@ -121,7 +126,8 @@ module Orb invoice_id: String, synchronous: T::Boolean, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def issue(invoice_id, synchronous: nil, request_options: {}) end @@ -133,7 +139,8 @@ module Orb external_id: T.nilable(String), notes: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def mark_paid(invoice_id, payment_received_date:, external_id: nil, notes: nil, request_options: {}) end @@ -142,7 +149,8 @@ module Orb params( invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def pay(invoice_id, request_options: {}) end @@ -151,7 +159,8 @@ module Orb params( invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Invoice) + ) + .returns(Orb::Models::Invoice) end def void(invoice_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index 40b45286..8f43fd41 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -12,7 +12,8 @@ module Orb T::Hash[Symbol, T.anything] ) ) - ).returns(Orb::Models::Item) + ) + .returns(Orb::Models::Item) end def create(name:, request_options: {}) end @@ -23,7 +24,8 @@ module Orb external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Item) + ) + .returns(Orb::Models::Item) end def update(item_id, external_connections: nil, name: nil, request_options: {}) end @@ -33,7 +35,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Item]) + ) + .returns(Orb::Page[Orb::Models::Item]) end def list(cursor: nil, limit: nil, request_options: {}) end @@ -42,7 +45,8 @@ module Orb params( item_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Item) + ) + .returns(Orb::Models::Item) end def fetch(item_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index 3047cf3a..05a395ef 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -11,7 +11,8 @@ module Orb sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::BillableMetric) + ) + .returns(Orb::Models::BillableMetric) end def create(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) end @@ -21,7 +22,8 @@ module Orb metric_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::BillableMetric) + ) + .returns(Orb::Models::BillableMetric) end def update(metric_id, metadata: nil, request_options: {}) end @@ -35,7 +37,8 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::BillableMetric]) + ) + .returns(Orb::Page[Orb::Models::BillableMetric]) end def list( created_at_gt: nil, @@ -52,7 +55,8 @@ module Orb params( metric_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::BillableMetric) + ) + .returns(Orb::Models::BillableMetric) end def fetch(metric_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index 6f42b24b..c35c7ee3 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -11,7 +11,8 @@ module Orb params( currency: String, name: String, - prices: T::Array[T.any( + prices: T::Array[ + T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, @@ -37,14 +38,16 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - )], + ) + ], default_invoice_memo: T.nilable(String), external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), status: Symbol, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Plan) + ) + .returns(Orb::Models::Plan) end def create( currency:, @@ -65,7 +68,8 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Plan) + ) + .returns(Orb::Models::Plan) end def update(plan_id, external_plan_id: nil, metadata: nil, request_options: {}) end @@ -80,7 +84,8 @@ module Orb limit: Integer, status: Symbol, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Plan]) + ) + .returns(Orb::Page[Orb::Models::Plan]) end def list( created_at_gt: nil, @@ -98,7 +103,8 @@ module Orb params( plan_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Plan) + ) + .returns(Orb::Models::Plan) end def fetch(plan_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index 2d162423..fca8f1e6 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -10,7 +10,8 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Plan) + ) + .returns(Orb::Models::Plan) end def update(other_external_plan_id, external_plan_id: nil, metadata: nil, request_options: {}) end @@ -19,7 +20,8 @@ module Orb params( external_plan_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Plan) + ) + .returns(Orb::Models::Plan) end def fetch(external_plan_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index 5c3f9e16..dfff22b1 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -52,36 +52,39 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).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 - )) + ) + .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 + ) + ) end def create( cadence:, @@ -135,36 +138,39 @@ module Orb price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).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 - )) + ) + .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 + ) + ) end def update(price_id, metadata: nil, request_options: {}) end @@ -174,36 +180,41 @@ module Orb cursor: T.nilable(String), limit: Integer, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[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( + Orb::Page[ + 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 list(cursor: nil, limit: nil, request_options: {}) end @@ -218,7 +229,8 @@ module Orb filter: T.nilable(String), grouping_keys: T::Array[String], request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::PriceEvaluateResponse) + ) + .returns(Orb::Models::PriceEvaluateResponse) end def evaluate( price_id, @@ -236,36 +248,39 @@ module Orb params( price_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).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 - )) + ) + .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 + ) + ) end def fetch(price_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index 5275fa01..51c2ebde 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -9,36 +9,39 @@ module Orb external_price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).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 - )) + ) + .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 + ) + ) end def update(external_price_id, metadata: nil, request_options: {}) end @@ -47,36 +50,39 @@ module Orb params( external_price_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).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 - )) + ) + .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 + ) + ) end def fetch(external_price_id, request_options: {}) end diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 3917e071..7137979e 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -36,7 +36,8 @@ module Orb start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionCreateResponse) + ) + .returns(Orb::Models::SubscriptionCreateResponse) end def create( add_adjustments: nil, @@ -82,7 +83,8 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Subscription) + ) + .returns(Orb::Models::Subscription) end def update( subscription_id, @@ -107,7 +109,8 @@ module Orb limit: Integer, status: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::Subscription]) + ) + .returns(Orb::Page[Orb::Models::Subscription]) end def list( created_at_gt: nil, @@ -130,7 +133,8 @@ module Orb allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionCancelResponse) + ) + .returns(Orb::Models::SubscriptionCancelResponse) end def cancel( subscription_id, @@ -145,7 +149,8 @@ module Orb params( subscription_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::Subscription) + ) + .returns(Orb::Models::Subscription) end def fetch(subscription_id, request_options: {}) end @@ -158,7 +163,8 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionFetchCostsResponse) + ) + .returns(Orb::Models::SubscriptionFetchCostsResponse) end def fetch_costs( subscription_id, @@ -180,7 +186,8 @@ module Orb start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse]) + ) + .returns(Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse]) end def fetch_schedule( subscription_id, @@ -208,10 +215,13 @@ module Orb timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - )) + ) + .returns( + T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + ) + ) end def fetch_usage( subscription_id, @@ -238,7 +248,8 @@ module Orb edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionPriceIntervalsResponse) + ) + .returns(Orb::Models::SubscriptionPriceIntervalsResponse) end def price_intervals( subscription_id, @@ -280,7 +291,8 @@ module Orb replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), trial_duration_days: T.nilable(Integer), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) + ) + .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) end def schedule_plan_change( subscription_id, @@ -319,7 +331,8 @@ module Orb allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionTriggerPhaseResponse) + ) + .returns(Orb::Models::SubscriptionTriggerPhaseResponse) end def trigger_phase( subscription_id, @@ -333,7 +346,8 @@ module Orb params( subscription_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) + ) + .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) end def unschedule_cancellation(subscription_id, request_options: {}) end @@ -343,7 +357,8 @@ module Orb subscription_id: String, price_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) + ) + .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) end def unschedule_fixed_fee_quantity_updates(subscription_id, price_id:, request_options: {}) end @@ -352,7 +367,8 @@ module Orb params( subscription_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) + ) + .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) end def unschedule_pending_plan_changes(subscription_id, request_options: {}) end @@ -366,7 +382,8 @@ module Orb change_option: Symbol, effective_date: T.nilable(Date), request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) + ) + .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) end def update_fixed_fee_quantity( subscription_id, @@ -385,7 +402,8 @@ module Orb trial_end_date: T.any(Time, Symbol), shift: T::Boolean, request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ).returns(Orb::Models::SubscriptionUpdateTrialResponse) + ) + .returns(Orb::Models::SubscriptionUpdateTrialResponse) end def update_trial(subscription_id, trial_end_date:, shift: nil, request_options: {}) end diff --git a/rbi/lib/orb/resources/top_level.rbi b/rbi/lib/orb/resources/top_level.rbi index f76d6c9f..e52519c7 100644 --- a/rbi/lib/orb/resources/top_level.rbi +++ b/rbi/lib/orb/resources/top_level.rbi @@ -4,15 +4,8 @@ module Orb module Resources class TopLevel sig do - params( - request_options: T.nilable( - T.any( - Orb::RequestOptions, - T::Hash[Symbol, - T.anything] - ) - ) - ).returns(Orb::Models::TopLevelPingResponse) + params(request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]))) + .returns(Orb::Models::TopLevelPingResponse) end def ping(request_options: {}) end diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index a9e92304..5e86301a 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -31,7 +31,8 @@ module Orb exceptions: T::Array[Exception], sentinel: T.nilable(T.anything), blk: T.nilable(T.proc.returns(T.anything)) - ).returns(T.nilable(T.anything)) + ) + .returns(T.nilable(T.anything)) end def self.suppress(*exceptions, sentinel: nil, &blk) end @@ -39,11 +40,8 @@ module Orb OMIT = T.let(T.anything, T.anything) sig do - params( - values: T::Array[T.anything], - sentinel: T.nilable(T.anything), - concat: T::Boolean - ).returns(T.anything) + params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) + .returns(T.anything) end def self.deep_merge(*values, sentinel: nil, concat: false) end @@ -54,7 +52,8 @@ module Orb pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), sentinel: T.nilable(T.anything), blk: T.nilable(T.proc.returns(T.anything)) - ).returns(T.nilable(T.anything)) + ) + .returns(T.nilable(T.anything)) end def self.dig(data, pick, sentinel = nil, &blk) end @@ -94,21 +93,15 @@ module Orb end sig do - params( - query: T.nilable( - T::Hash[String, - T.nilable(T.any(T::Array[String], String))] - ) - ).returns(T.nilable(String)) + params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) + .returns(T.nilable(String)) end def self.encode_query(query) end sig do - params( - headers: T::Array[T::Hash[String, - T.nilable(T.any(String, Integer))]] - ).returns(T::Hash[String, String]) + params(headers: T::Array[T::Hash[String, T.nilable(T.any(String, Integer))]]) + .returns(T::Hash[String, String]) end def self.normalized_headers(*headers) end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index f11bbaa1..a2fa65c0 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.9" + VERSION = "0.1.0-alpha.10" end diff --git a/sig/orb/base_client.rbs b/sig/orb/base_client.rbs index 64d838dd..07107b0f 100644 --- a/sig/orb/base_client.rbs +++ b/sig/orb/base_client.rbs @@ -1,6 +1,6 @@ module Orb class BaseClient - type request = + type request_components = { method: Symbol, path: String | ::Array[String], @@ -10,12 +10,10 @@ module Orb unwrap: Symbol?, page: Class?, model: Orb::Converter::input?, - options: (Orb::RequestOptions - | Orb::request_options - | ::Hash[Symbol, top])? + options: Orb::request_opts? } - type normalized_request = + type request_input = { method: Symbol, url: URI::Generic, @@ -27,7 +25,7 @@ module Orb MAX_REDIRECTS: 20 - def self.validate!: (Orb::BaseClient::request req) -> void + def self.validate!: (Orb::BaseClient::request_components req) -> void # @private attr_accessor requester: top @@ -47,9 +45,9 @@ module Orb private def generate_idempotency_key: -> String private def build_request: ( - Orb::BaseClient::request req, + Orb::BaseClient::request_components req, Orb::request_options opts - ) -> Orb::BaseClient::normalized_request + ) -> Orb::BaseClient::request_input private def should_retry?: ( Integer status, @@ -62,20 +60,20 @@ module Orb ) -> Float private def follow_redirect: ( - Orb::BaseClient::normalized_request request, + Orb::BaseClient::request_input request, status: Integer, location_header: String - ) -> Orb::BaseClient::normalized_request + ) -> Orb::BaseClient::request_input private def send_request: ( - Orb::BaseClient::normalized_request request, + Orb::BaseClient::request_input request, redirect_count: Integer, retry_count: Integer, send_retry_header: bool ) -> top private def parse_response: ( - Orb::BaseClient::request req, + Orb::BaseClient::request_components req, nil response ) -> top @@ -89,11 +87,9 @@ module Orb unwrap: Symbol?, page: Class?, model: Orb::Converter::input?, - options: (Orb::RequestOptions - | Orb::request_options - | ::Hash[Symbol, top])? + options: Orb::request_opts? ) -> top - | (Orb::BaseClient::request req) -> top + | (Orb::BaseClient::request_components req) -> top def inspect: -> String end diff --git a/sig/orb/base_page.rbs b/sig/orb/base_page.rbs index d91d5f57..7cb838ef 100644 --- a/sig/orb/base_page.rbs +++ b/sig/orb/base_page.rbs @@ -12,7 +12,7 @@ module Orb def initialize: ( client: Orb::BaseClient, - req: Orb::BaseClient::request, + req: Orb::BaseClient::request_components, headers: ::Hash[String, String], unwrapped: top ) -> void diff --git a/sig/orb/errors.rbs b/sig/orb/errors.rbs index eb8c9d65..f2dae42d 100644 --- a/sig/orb/errors.rbs +++ b/sig/orb/errors.rbs @@ -96,49 +96,49 @@ module Orb HTTP_STATUS: Range[Integer] end - class ConstraintViolation < Orb::APIStatusError + class ConstraintViolation < Orb::BadRequestError HTTP_STATUS: 400 TYPE: "https://docs.withorb.com/reference/error-responses#400-constraint-violation" end - class DuplicateResourceCreation < Orb::APIStatusError + class DuplicateResourceCreation < Orb::BadRequestError HTTP_STATUS: 400 TYPE: "https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation" end - class FeatureNotAvailable < Orb::APIStatusError + class FeatureNotAvailable < Orb::BadRequestError HTTP_STATUS: 400 TYPE: "https://docs.withorb.com/reference/error-responses#404-feature-not-available" end - class RequestValidationError < Orb::APIStatusError + class RequestValidationError < Orb::BadRequestError HTTP_STATUS: 400 TYPE: "https://docs.withorb.com/reference/error-responses#400-request-validation-errors" end - class OrbAuthenticationError < Orb::APIStatusError + class OrbAuthenticationError < Orb::AuthenticationError HTTP_STATUS: 401 TYPE: "https://docs.withorb.com/reference/error-responses#401-authentication-error" end - class ResourceNotFound < Orb::APIStatusError + class ResourceNotFound < Orb::NotFoundError HTTP_STATUS: 404 TYPE: "https://docs.withorb.com/reference/error-responses#404-resource-not-found" end - class URLNotFound < Orb::APIStatusError + class URLNotFound < Orb::NotFoundError HTTP_STATUS: 404 TYPE: "https://docs.withorb.com/reference/error-responses#404-url-not-found" end - class ResourceConflict < Orb::APIStatusError + class ResourceConflict < Orb::ConflictError HTTP_STATUS: 409 TYPE: "https://docs.withorb.com/reference/error-responses#409-resource-conflict" @@ -156,14 +156,14 @@ module Orb TYPE: "https://docs.withorb.com/reference/error-responses#413-resource-too-large" end - class TooManyRequests < Orb::APIStatusError + class TooManyRequests < Orb::RateLimitError HTTP_STATUS: 429 TYPE: "https://docs.withorb.com/reference/error-responses#429-too-many-requests" end - class OrbInternalServerError < Orb::APIStatusError - HTTP_STATUS: 500 + class OrbInternalServerError < Orb::InternalServerError + HTTP_STATUS: Range[Integer] TYPE: "https://docs.withorb.com/reference/error-responses#500-internal-server-error" end diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index d2fa8907..0a8f13e1 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -8,7 +8,7 @@ module Orb def initialize: ( client: Orb::BaseClient, - req: Orb::BaseClient::request, + req: Orb::BaseClient::request_components, headers: ::Hash[String, String], unwrapped: ::Hash[Symbol, top] ) -> void diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index d0f7f695..d3c88ab2 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.8" + VERSION: "0.1.0-alpha.9" end diff --git a/test/orb/client_test.rb b/test/orb/client_test.rb index 887f5557..32cda714 100644 --- a/test/orb/client_test.rb +++ b/test/orb/client_test.rb @@ -187,7 +187,7 @@ def test_retry_count_header orb.customers.create(email: "dev@stainlessapi.com", name: "x") end - retry_count_headers = requester.attempts.map { |a| a[:headers]["x-stainless-retry-count"] } + retry_count_headers = requester.attempts.map { _1[:headers]["x-stainless-retry-count"] } assert_equal(%w[0 1 2], retry_count_headers) end @@ -204,7 +204,7 @@ def test_omit_retry_count_header ) end - retry_count_headers = requester.attempts.map { |a| a[:headers]["x-stainless-retry-count"] } + retry_count_headers = requester.attempts.map { _1[:headers]["x-stainless-retry-count"] } assert_equal([nil, nil, nil], retry_count_headers) end @@ -221,7 +221,7 @@ def test_overwrite_retry_count_header ) end - retry_count_headers = requester.attempts.map { |a| a[:headers]["x-stainless-retry-count"] } + retry_count_headers = requester.attempts.map { _1[:headers]["x-stainless-retry-count"] } assert_equal(%w[42 42 42], retry_count_headers) end @@ -302,7 +302,7 @@ def test_client_default_idempotency_key_on_writes orb.customers.create(email: "dev@stainlessapi.com", name: "x", request_options: {max_retries: 1}) end - idempotency_headers = requester.attempts.map { |a| a[:headers]["Idempotency-Key".downcase] } + idempotency_headers = requester.attempts.map { _1[:headers]["Idempotency-Key".downcase] } assert_kind_of(String, idempotency_headers.first) refute_empty(idempotency_headers.first) @@ -322,7 +322,7 @@ def test_request_option_idempotency_key_on_writes ) end - requester.attempts.each { |a| assert_equal("user-supplied-key", a[:headers]["Idempotency-Key".downcase]) } + requester.attempts.each { assert_equal("user-supplied-key", _1[:headers]["Idempotency-Key".downcase]) } end def test_default_headers